linux ingress-controller elb pending

葫芦的运维日志

下一篇 搜索 上一篇

浏览量 85

2021/10/18 14:50


修复 nginx-ingress service 不自动生成aws-elb问题

my-nginx-ingress-ingress-nginx-controller LoadBalancer 192.168.2.12 <pending> 80:32222/TCP,443:32223/TCP 2m7s

打开 kube-controller-manager 日志发现报错:

event.go:291] "Event occurred" object="nginx-ingress/my-nginx-ingress-ingress-nginx-controller" kind="Service" apiVersion="v1" type="Warning" reason="SyncLoadBalancerFailed" message="Error syncing load balancer: failed to ensure load balancer: could not find any suitable subnets for creating the ELB"

解决:

kubectl --kubeconfig=../kubeconfig/****/config annotate svc my-nginx-ingress-ingress-nginx-controller -n nginx-ingress service.beta.kubernetes.io/aws-load-balancer-internal="true"

葫芦的运维日志

打赏

上一篇 搜索 下一篇
© 冰糖葫芦甜(bthlt.com) 2021 王梓打赏联系方式 陕ICP备17005322号-1