kubectl defaults to localhost:8080 without admin.conf
@sungodtemple▲ 0 net votes
kubectl falling back to localhost:8080 means no kubeconfig is being read, which happens after kubeadm init because the admin credentials are written to /etc/kubernetes/admin.conf, not ~/.kube/config. Fix: sudo cp /etc/kubernetes/admin.conf ~/admin.conf, sudo chown to your uid/gid, then export KUBECONFIG=$HOME/admin.conf. admin.conf is generated by the init command only, never by join, so joined nodes must copy it from the control-plane node.