Skip to content

Commit 06f780b

Browse files
committed
升级20241101版本
1 parent 7bc92a4 commit 06f780b

File tree

1 file changed

+155
-1
lines changed

1 file changed

+155
-1
lines changed

install/kubernetes/virtual.yaml

+155-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,155 @@
1-
c
1+
2+
apiVersion: networking.istio.io/v1alpha3
3+
kind: VirtualService
4+
metadata:
5+
name: kube-system-k8s-dashboard-cluster
6+
namespace: kube-system
7+
spec:
8+
gateways:
9+
- kubeflow/kubeflow-gateway
10+
hosts:
11+
- "*" # 配置自己管理的域名kubeflow.local.com
12+
http:
13+
- match:
14+
- uri:
15+
prefix: /k8s/dashboard/cluster/
16+
headers:
17+
cookie:
18+
regex: ".*myapp_username=.*"
19+
rewrite:
20+
uri: /
21+
route:
22+
- destination:
23+
host: kubernetes-dashboard-cluster.kube-system.svc.cluster.local
24+
port:
25+
number: 9090
26+
27+
---
28+
apiVersion: networking.istio.io/v1alpha3
29+
kind: VirtualService
30+
metadata:
31+
name: kube-system-k8s-dashboard-user1
32+
namespace: kube-system
33+
spec:
34+
gateways:
35+
- kubeflow/kubeflow-gateway
36+
hosts:
37+
- "*" # 配置自己管理的域名kubeflow.local.com
38+
http:
39+
- match:
40+
- uri:
41+
prefix: /k8s/dashboard/user1/
42+
headers:
43+
cookie:
44+
regex: ".*myapp_username=.*"
45+
rewrite:
46+
uri: /
47+
route:
48+
- destination:
49+
host: kubernetes-dashboard-user1.kube-system.svc.cluster.local
50+
port:
51+
number: 9090
52+
---
53+
apiVersion: networking.istio.io/v1alpha3
54+
kind: VirtualService
55+
metadata:
56+
name: kubeflow-labelstudio
57+
namespace: kubeflow
58+
spec:
59+
gateways:
60+
- kubeflow/kubeflow-gateway
61+
hosts:
62+
- "*" # 配置自己管理的域名 kubeflow.local.com
63+
http:
64+
- match:
65+
- uri:
66+
prefix: /labelstudio/
67+
headers:
68+
cookie:
69+
regex: ".*myapp_username=.*"
70+
rewrite:
71+
uri: /labelstudio/
72+
route:
73+
- destination:
74+
host: labelstudio.kubeflow.svc.cluster.local
75+
port:
76+
number: 8080
77+
---
78+
apiVersion: networking.istio.io/v1alpha3
79+
kind: VirtualService
80+
metadata:
81+
name: monitoring-grafana
82+
namespace: monitoring
83+
spec:
84+
gateways:
85+
- kubeflow/kubeflow-gateway
86+
hosts:
87+
- "*" # 配置自己管理的域名 kubeflow.local.com
88+
http:
89+
- match:
90+
- uri:
91+
prefix: /grafana/
92+
headers:
93+
cookie:
94+
regex: ".*myapp_username=.*"
95+
rewrite:
96+
uri: /
97+
route:
98+
- destination:
99+
host: grafana.monitoring.svc.cluster.local
100+
port:
101+
number: 8080
102+
#---
103+
#apiVersion: networking.istio.io/v1alpha3
104+
#kind: VirtualService
105+
#metadata:
106+
# name: monitoring-prometheus
107+
# namespace: monitoring
108+
#spec:
109+
# gateways:
110+
# - kubeflow/kubeflow-gateway
111+
# hosts:
112+
# - "*" # 配置自己管理的域名 kubeflow.local.com
113+
# http:
114+
# - match:
115+
# - uri:
116+
# prefix: /prometheus/
117+
# rewrite:
118+
# uri: /prometheus/
119+
# route:
120+
# - destination:
121+
# host: prometheus-k8s.monitoring.svc.cluster.local
122+
# port:
123+
# number: 9090
124+
---
125+
## 私有云环境minio存放public所有静态资源vs
126+
#apiVersion: networking.istio.io/v1beta1
127+
#kind: VirtualService
128+
#metadata:
129+
# name: minio
130+
# namespace: kubeflow
131+
#spec:
132+
# gateways:
133+
# - kubeflow/kubeflow-gateway
134+
# hosts:
135+
# - '*'
136+
# http:
137+
# - corsPolicy:
138+
# allowHeaders:
139+
# - '*'
140+
# allowMethods:
141+
# - POST
142+
# - GET
143+
# allowOrigin:
144+
# - '*'
145+
# match:
146+
# - uri:
147+
# prefix: /minio/
148+
# rewrite:
149+
# uri: /
150+
# route:
151+
# - destination:
152+
# host: minio.kubeflow.svc.cluster.local
153+
# port:
154+
# number: 9000
155+

0 commit comments

Comments
 (0)