Skip to content

Commit

Permalink
升级20241101版本
Browse files Browse the repository at this point in the history
  • Loading branch information
data-infra committed Dec 4, 2024
1 parent 7bc92a4 commit 06f780b
Showing 1 changed file with 155 additions and 1 deletion.
156 changes: 155 additions & 1 deletion install/kubernetes/virtual.yaml
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

0 comments on commit 06f780b

Please sign in to comment.