通过 helm 向 k8s 集群部署应用时出现下面的错误,请问如何解决?
error: You must be logged in to the server (Unauthorized)
Error: Kubernetes cluster unreachable: the server has asked for the client to provide credentials
kubeadm certs check-expiration
命令查看证书没有过期
重新复制 admin.conf 到当前用户目录中解决了
cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
复制后需要重新设置默认 namespace
kubectl config set-context --current --namespace=production