From 2168ff9f7d28b769581d4b3de9940d324234caaf Mon Sep 17 00:00:00 2001 From: data-infra <825485697@qq.com> Date: Tue, 19 Dec 2023 17:14:47 +0800 Subject: [PATCH] =?UTF-8?q?istio=20ingressgateway=20=E6=9C=8D=E5=8A=A1?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=E4=BD=BF=E7=94=A8externalIPs=E6=A8=A1?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install/kubernetes/istio/install-1.15.0.yaml | 6 +++--- install/kubernetes/start.sh | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/install/kubernetes/istio/install-1.15.0.yaml b/install/kubernetes/istio/install-1.15.0.yaml index 9b67a986..6339adcb 100644 --- a/install/kubernetes/istio/install-1.15.0.yaml +++ b/install/kubernetes/istio/install-1.15.0.yaml @@ -9712,7 +9712,7 @@ metadata: operator.istio.io/component: "IngressGateways" spec: # type: LoadBalancer - type: NodePort + # type: NodePort selector: app: istio-ingressgateway istio: ingressgateway @@ -9725,12 +9725,12 @@ spec: port: 80 protocol: TCP targetPort: 8888 - nodePort: 80 + # nodePort: 80 - name: http3 port: 8080 protocol: TCP targetPort: 8889 - nodePort: 8080 + # nodePort: 8080 # - name: https # port: 443 # protocol: TCP diff --git a/install/kubernetes/start.sh b/install/kubernetes/start.sh index 229edb51..e0cf93df 100644 --- a/install/kubernetes/start.sh +++ b/install/kubernetes/start.sh @@ -149,7 +149,7 @@ kubectl apply -k cube/overlays # 配置入口 #ip=`ifconfig eth1 | grep 'inet '| awk '{print $2}' | head -n 1` -#kubectl patch svc istio-ingressgateway -n istio-system -p '{"spec":{"externalIPs":["'"$1"'"]}}' +kubectl patch svc istio-ingressgateway -n istio-system -p '{"spec":{"externalIPs":["'"$1"'"]}}' # 本地电脑手动host echo "打开网址:http://$1"