-
Notifications
You must be signed in to change notification settings - Fork 674
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7bc92a4
commit 06f780b
Showing
1 changed file
with
155 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,155 @@ | ||
c | ||
|
||
apiVersion: networking.istio.io/v1alpha3 | ||
kind: VirtualService | ||
metadata: | ||
name: kube-system-k8s-dashboard-cluster | ||
namespace: kube-system | ||
spec: | ||
gateways: | ||
- kubeflow/kubeflow-gateway | ||
hosts: | ||
- "*" # 配置自己管理的域名kubeflow.local.com | ||
http: | ||
- match: | ||
- uri: | ||
prefix: /k8s/dashboard/cluster/ | ||
headers: | ||
cookie: | ||
regex: ".*myapp_username=.*" | ||
rewrite: | ||
uri: / | ||
route: | ||
- destination: | ||
host: kubernetes-dashboard-cluster.kube-system.svc.cluster.local | ||
port: | ||
number: 9090 | ||
|
||
--- | ||
apiVersion: networking.istio.io/v1alpha3 | ||
kind: VirtualService | ||
metadata: | ||
name: kube-system-k8s-dashboard-user1 | ||
namespace: kube-system | ||
spec: | ||
gateways: | ||
- kubeflow/kubeflow-gateway | ||
hosts: | ||
- "*" # 配置自己管理的域名kubeflow.local.com | ||
http: | ||
- match: | ||
- uri: | ||
prefix: /k8s/dashboard/user1/ | ||
headers: | ||
cookie: | ||
regex: ".*myapp_username=.*" | ||
rewrite: | ||
uri: / | ||
route: | ||
- destination: | ||
host: kubernetes-dashboard-user1.kube-system.svc.cluster.local | ||
port: | ||
number: 9090 | ||
--- | ||
apiVersion: networking.istio.io/v1alpha3 | ||
kind: VirtualService | ||
metadata: | ||
name: kubeflow-labelstudio | ||
namespace: kubeflow | ||
spec: | ||
gateways: | ||
- kubeflow/kubeflow-gateway | ||
hosts: | ||
- "*" # 配置自己管理的域名 kubeflow.local.com | ||
http: | ||
- match: | ||
- uri: | ||
prefix: /labelstudio/ | ||
headers: | ||
cookie: | ||
regex: ".*myapp_username=.*" | ||
rewrite: | ||
uri: /labelstudio/ | ||
route: | ||
- destination: | ||
host: labelstudio.kubeflow.svc.cluster.local | ||
port: | ||
number: 8080 | ||
--- | ||
apiVersion: networking.istio.io/v1alpha3 | ||
kind: VirtualService | ||
metadata: | ||
name: monitoring-grafana | ||
namespace: monitoring | ||
spec: | ||
gateways: | ||
- kubeflow/kubeflow-gateway | ||
hosts: | ||
- "*" # 配置自己管理的域名 kubeflow.local.com | ||
http: | ||
- match: | ||
- uri: | ||
prefix: /grafana/ | ||
headers: | ||
cookie: | ||
regex: ".*myapp_username=.*" | ||
rewrite: | ||
uri: / | ||
route: | ||
- destination: | ||
host: grafana.monitoring.svc.cluster.local | ||
port: | ||
number: 8080 | ||
#--- | ||
#apiVersion: networking.istio.io/v1alpha3 | ||
#kind: VirtualService | ||
#metadata: | ||
# name: monitoring-prometheus | ||
# namespace: monitoring | ||
#spec: | ||
# gateways: | ||
# - kubeflow/kubeflow-gateway | ||
# hosts: | ||
# - "*" # 配置自己管理的域名 kubeflow.local.com | ||
# http: | ||
# - match: | ||
# - uri: | ||
# prefix: /prometheus/ | ||
# rewrite: | ||
# uri: /prometheus/ | ||
# route: | ||
# - destination: | ||
# host: prometheus-k8s.monitoring.svc.cluster.local | ||
# port: | ||
# number: 9090 | ||
--- | ||
## 私有云环境minio存放public所有静态资源vs | ||
#apiVersion: networking.istio.io/v1beta1 | ||
#kind: VirtualService | ||
#metadata: | ||
# name: minio | ||
# namespace: kubeflow | ||
#spec: | ||
# gateways: | ||
# - kubeflow/kubeflow-gateway | ||
# hosts: | ||
# - '*' | ||
# http: | ||
# - corsPolicy: | ||
# allowHeaders: | ||
# - '*' | ||
# allowMethods: | ||
# - POST | ||
# - GET | ||
# allowOrigin: | ||
# - '*' | ||
# match: | ||
# - uri: | ||
# prefix: /minio/ | ||
# rewrite: | ||
# uri: / | ||
# route: | ||
# - destination: | ||
# host: minio.kubeflow.svc.cluster.local | ||
# port: | ||
# number: 9000 | ||
|