did you run below commands after kubeadm init
To start using your cluster, you need to run (as a regular user):
sudo cp /etc/kubernetes/admin.conf $HOME/ sudo chown $(id -u):$(id -g) $HOME/admin.conf export KUBECONFIG=$HOME/admin.conf
ref: https://github.com/kubernetes/kubernetes/issues/44665
时间: 2024-10-11 06:32:58