部署 Istio Egress Gateway

发布时间 2023-11-14 12:43:14作者: 小吉猫

检查 Istio Egress Gateway 是否已布署

kubectl get pod -l istio=egressgateway -n istio-system

查看现存 Istio pod信息

kubectl get pods -n istio-system
NAME                                   READY   STATUS    RESTARTS       AGE
istio-ingressgateway-f9fc6b7fb-m4vmm   1/1     Running   1 (145m ago)   37h
istiod-64bf87bdf9-95srr                1/1     Running   1 (145m ago)   37h

部署 Istio Egress Gateway

istioctl install --set profile=default --set values.global.proxy.clusterDomain=wgs.local --set components.egressGateways[0].name=istio-egressgateway --set components.egressGateways[0].enabled=true   -y
✔ Istio core installed                                                                                                                                                                                           
✔ Istiod installed                                                                                                                                                                                               
✔ Ingress gateways installed                                                                                                                                                                                     
✔ Egress gateways installed                                                                                                                                                                                      
✔ Installation complete                                                                                                         
Made this installation the default for injection and validation.

确认 Istio pod 信息

kubectl get pods -n istio-system
NAME                                   READY   STATUS    RESTARTS       AGE
istio-egressgateway-b7b9fbf5-9zzbr     1/1     Running   0              15s
istio-ingressgateway-f9fc6b7fb-m4vmm   1/1     Running   1 (146m ago)   37h
istiod-64bf87bdf9-95srr                1/1     Running   1 (146m ago)   37h

参考文档

https://istio.io/latest/zh/docs/tasks/traffic-management/egress/egress-gateway/#deploy-Istio-egress-gateway