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

时间:2021-02-12 23:44:10

标签: amazon-web-services kubectl amazon-eks eksctl

我正在尝试按照以下步骤在我的 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"

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

有人对如何解决此问题有任何建议吗?

1 个答案:

答案 0 :(得分:0)

原来我的节点组上的 tains 阻止了 cert-manager pod 在任何节点上启动

这些命令帮助调试并引导我解决了这个问题

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

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

相关问题