mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-07-17 02:06:23 +00:00
Historicaly the kubeadm clients have used the 'admin.conf' and 'super-admin.conf' directly, which makes all API calls go trough the CPE (control plane endpoint). This can create problems for scenarios when the LB is provisioned only after 'init' starts the kube-apiserver. Instead of using the '.conf' as they are, modify them in memory to point to the LAE (localAPIEndpoint). This was already done by the WaitControlPlaneClient for the WaitControlPlane phase, which required it. This separate client is no longer needed. However, do use a unmodified kubeconfig to the init phase bootstrap-token since this is the phase that creates the cluster-info CM and for that we need the original CPE server address.