AWS EKS - 创建负载均衡器控制器失败

AWS EKS - Failure creating load balancer controller

我正尝试通过以下方式在我的 EKS 集群上创建一个应用程序负载平衡器控制器 this link

当我运行执行这些步骤时(对下载的 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"

负载平衡器控制器因此似乎没有启动并且永远不会进入就绪状态

有人对如何解决这个问题有什么建议吗?

原来我的节点组上的污点阻止了证书管理器 pods 在任何节点上启动。

这些命令有助于调试并引导我修复此问题:

kubectl get po -n cert-manager
kubectl describe po <pod id> -n cert-manager

我的解决方案是创建另一个没有指定污点的节点组。这允许证书管理器 运行.