aws load-balancer is not registered with instances

后端 未结 2 1334
没有蜡笔的小新
没有蜡笔的小新 2021-02-14 07:07

I use kubeadm to launch cluster on AWS. I can successfully create a load balancer on AWS by using kubectl, bu

相关标签:
2条回答
  • 2021-02-14 07:57

    In my case - the problem was missing the option --cloud-provider=aws

    After I placed the following in /etc/default/kubelet (via terraform in my case ) and redeployed my nodes, everything worked

    /etc/default/kubelet

    KUBELET_EXTRA_ARGS='--cloud-provider=aws'

    0 讨论(0)
  • 2021-02-14 08:05

    In My case the issue was with the worker nodes not getting the providerId assigned properly.

    I managed to patch the node like - kubectl patch node ip-xxxxx.ap-southeast-2.compute.internal -p '{"spec":{"providerID":"aws:///ap-southeast-2a/i-0xxxxx"}}'

    to add the ProviderID. And then when i deployed the service . The ELB got created. the node group got added and end to end it worked. This is not a straight forward answer . But until i find a better solution let remain here

    0 讨论(0)
提交回复
热议问题