Unable to connect to the server: x509: certificate signed by unknown authority (possibly because of "crypto/rsa: verification error" while trying to verify candidate authority certificate "kubernetes")
unset KUBECONFIG
export KUBECONFIG=/etc/kubernetes/admin.conf
mkdir -p $HOME/.kube
sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
sudo chown $(id -u):$(id -g) $HOME/.kube/config
해당 명령어를 수행하여 해결한다
'K8S > ICM' 카테고리의 다른 글
kubectl 사용 불가 - The connection to the server localhost:8080 was refused - did you specify the right host or port? (0) | 2022.08.15 |
---|---|
ubuntu에 k8s 설치하기 (0) | 2022.07.05 |