mirror of
https://github.com/tencentmusic/cube-studio.git
synced 2024-12-15 06:09:57 +08:00
istio ingressgateway 服务类型使用externalIPs模式
This commit is contained in:
parent
10a2e7cc9e
commit
641cfabaef
@ -9702,7 +9702,6 @@ kind: Service
|
||||
metadata:
|
||||
name: istio-ingressgateway
|
||||
namespace: istio-system
|
||||
annotations:
|
||||
labels:
|
||||
app: istio-ingressgateway
|
||||
istio: ingressgateway
|
||||
|
@ -1,64 +0,0 @@
|
||||
|
||||
bash init_node.sh
|
||||
mkdir -p ~/.kube && cp config ~/.kube/config && cp ~/.kube/config /etc/kubernetes/admin.conf
|
||||
mkdir -p kubeconfig && echo "" > kubeconfig/dev-kubeconfig
|
||||
node=`kubectl get node -o wide |grep $1 |awk '{print $1}'| head -n 1`
|
||||
kubectl label node $node train=true cpu=true notebook=true service=true org=public istio=true kubeflow=true kubeflow-dashboard=true mysql=true redis=true monitoring=true logging=true --overwrite
|
||||
|
||||
# 创建命名空间
|
||||
sh create_ns_secret.sh
|
||||
kubectl apply -f sa-rbac.yaml
|
||||
# 部署dashboard
|
||||
kubectl apply -f dashboard/v2.6.1-cluster.yaml
|
||||
# 部署mysql
|
||||
kubectl create -f mysql/pv-pvc-hostpath.yaml
|
||||
kubectl create -f mysql/service.yaml
|
||||
kubectl create -f mysql/configmap-mysql.yaml
|
||||
kubectl create -f mysql/deploy.yaml
|
||||
# 部署redis
|
||||
kubectl create -f redis/pv-hostpath.yaml
|
||||
kubectl create -f redis/configmap.yaml
|
||||
kubectl create -f redis/service.yaml
|
||||
# 如果自己需要使用pv来保存redis队列数据,可以修改master.yaml
|
||||
kubectl create -f redis/master.yaml
|
||||
|
||||
# 部署istio
|
||||
kubectl apply -f istio/install-crd.yaml
|
||||
kubectl wait crd/envoyfilters.networking.istio.io --for condition=established --timeout=60s
|
||||
kubectl apply -f istio/install-1.15.0.yaml
|
||||
|
||||
kubectl wait crd/virtualservices.networking.istio.io --for condition=established --timeout=60s
|
||||
kubectl wait crd/gateways.networking.istio.io --for condition=established --timeout=60s
|
||||
|
||||
kubectl apply -f gateway.yaml
|
||||
kubectl apply -f virtual.yaml
|
||||
|
||||
# 部署管理平台
|
||||
kubectl delete configmap kubernetes-config -n infra
|
||||
kubectl create configmap kubernetes-config --from-file=kubeconfig -n infra
|
||||
|
||||
kubectl delete configmap kubernetes-config -n pipeline
|
||||
kubectl create configmap kubernetes-config --from-file=kubeconfig -n pipeline
|
||||
|
||||
kubectl delete configmap kubernetes-config -n automl
|
||||
kubectl create configmap kubernetes-config --from-file=kubeconfig -n automl
|
||||
|
||||
kubectl create -f pv-pvc-infra.yaml
|
||||
kubectl create -f pv-pvc-jupyter.yaml
|
||||
kubectl create -f pv-pvc-automl.yaml
|
||||
kubectl create -f pv-pvc-pipeline.yaml
|
||||
kubectl create -f pv-pvc-service.yaml
|
||||
|
||||
kubectl delete -k cube/overlays
|
||||
kubectl apply -k cube/overlays
|
||||
kubectl delete deploy -n infra kubeflow-dashboard-schedule kubeflow-dashboard-worker kubeflow-watch
|
||||
|
||||
# 配置入口
|
||||
#ip=`ifconfig eth1 | grep 'inet '| awk '{print $2}' | head -n 1`
|
||||
kubectl patch svc istio-ingressgateway -n istio-system -p '{"spec":{"externalIPs":["'"$1"'"]}}'
|
||||
|
||||
# 本地电脑手动host
|
||||
echo "打开网址:http://$1"
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user