I am running into a few issues when trying to get my local kubectl to point to clusters created with kubeadm:
- The kubectl config files generated from kubeadm use the same user name, cluster name, and context name, so I cannot simply download them and add them to
$KUBECONFIG
. - There is no kubectl command for renaming a cluster or user.
- The config file generated from kubeadm has the properties client-key-data and client-certificate-data. These are not fields recognized by kubectl when creating a new user or cluster.
- Clusters created through kubeadm don't seem to allow access through simple username and password. It seems to require the certificate infos.
It seems like I am limited to modifying the contents of the ~/.kube/config
file through string manipulation (gross), which I would like to avoid!! Does anyone have a solution for this?