我正在尝试通过以下this link在我的EKS集群上创建一个应用程序负载均衡控制器
当我运行这些步骤时(对下载的yaml文件进行必要的更改之后)
curl -o v2_1_2_full.yaml https://raw.githubusercontent.com/kubernetes-sigs/aws-load-balancer-controller/v2.1.2/docs/install/v2_1_2_full.yaml
kubectl apply -f v2_1_2_full.yaml
我得到了这个输出
customresourcedefinition.apiextensions.k8s.io/targetgroupbindings.elbv2.k8s.aws configured
mutatingwebhookconfiguration.admissionregistration.k8s.io/aws-load-balancer-webhook configured
role.rbac.authorization.k8s.io/aws-load-balancer-controller-leader-election-role unchanged
clusterrole.rbac.authorization.k8s.io/aws-load-balancer-controller-role configured
rolebinding.rbac.authorization.k8s.io/aws-load-balancer-controller-leader-election-rolebinding unchanged
clusterrolebinding.rbac.authorization.k8s.io/aws-load-balancer-controller-rolebinding unchanged
service/aws-load-balancer-webhook-service unchanged
deployment.apps/aws-load-balancer-controller unchanged
validatingwebhookconfiguration.admissionregistration.k8s.io/aws-load-balancer-webhook configured
Error from server (InternalError): error when creating "v2_1_2_full.yaml": Internal error occurred: failed calling webhook "webhook.cert-manager.io": Post https://cert-manager-webhook.cert-manager.svc:443/mutate?timeout=10s: no endpoints available for service "cert-manager-webhook"
Error from server (InternalError): error when creating "v2_1_2_full.yaml": Internal error occurred: failed calling webhook "webhook.cert-manager.io": Post https://cert-manager-webhook.cert-manager.svc:443/mutate?timeout=10s: no endpoints available for service "cert-manager-webhook"
由于这个原因,负载均衡器控制器似乎没有启动,并且永远不会进入就绪状态
有没有人对如何解决这个问题有什么建议?
发布于 2021-02-17 02:00:10
结果,我的nodegroup上的属性阻止了cert-manager pod在任何节点上启动
这些命令有助于调试,并使我找到了解决此问题的方法
kubectl get po -n cert-manager
kubectl describe po <pod id> -n cert-manager
我的解决方案是创建另一个没有指定污染的nodeGroup,这允许证书管理器运行
https://stackoverflow.com/questions/66180450
复制相似问题