kubeadm init fails when using aws elb as control-plane endpoint
I answered a similar question here: https://stackoverflow.com/a/70799078/9284676
When using ELB for your --control-plane-endpoint
in a HA master scenario, you need to create a Target Group
using type IP addresses
and not Instances
. The text is helpful when creating the Target Group:
"Facilitates routing to multiple IP addresses and network interfaces on the same instance."
I was then able to successfully init my cluster using this setup:
kubeadm init --control-plane-endpoint "<myELBname>:6443" --upload-certs