aws 安装好istio 默认用的是alb 需要改成nlb

1. https://istio.io/latest/zh/docs/setup/getting-started/#download 安装参考文档

安装好istio 默认用的是alb 需要改成nlb

 

kubectl get svc -n istio-system
kubectl edit svc -n istio-system istio-ingressgateway

1.edit编辑先先把LoadBalancer改为ClusterIP保存退出,删除原有lb,因为默认是ELB

2.再次edit编辑type类型改为LoadBalancer,在annotations里面增加如下行 service.beta.kubernetes.io/aws-load-balancer-type: nlb

annotations:    # by default the type is elb (classic load balancer).
  service.beta.kubernetes.io/aws-load-balancer-type: nlb

 

posted @ 2022-04-18 14:18  B_en′Pǎo  阅读(169)  评论(0)    收藏  举报