Since there's no (or not many) real examples of valid kubeadm config files out there (for use with kubeadm --config <file>
),
here is an example. This version declares a control plane endpoint, the proxy for an HA setup, and also includes a
KubeProxyConfiguation to tell kube-proxy to use ipvs.
You can leave off the controlPlaneEndpoint (which points to the HA proxy ip:port) if you are not running in
HA mode, and you can omit the KubeProxyConfiguration if you are satisfied with using the default of iptables
for the proxy mode.
To initalize an HA setup using this file with kubeadm, you can execute: