2020. 8. 18. 16:13ㆍSystem/Beginner
에러 상황:
$ sudo kubectl get nodes
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")
해결방안:
출처: https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/troubleshooting-kubeadm/
Troubleshooting kubeadm
As with any program, you might run into an error installing or running kubeadm. This page lists some common failure scenarios and have provided steps that can help you understand and fix the problem. If your problem is not listed below, please follow the f
kubernetes.io
TLS certificate errors
1. unset KUBECONFIG
2. export KUBECONFIG=/etc/kubernetes/admin.conf
3. mv $HOME/.kube $HOME/.kube.bak
4. mkdir $HOME/.kube
5. sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
6. sudo chown $(id -u):$(id -g) $HOME/.kube/config
7. sudo kubectl get nodes
정상적으로 작동함을 확인할 수 있다.
'System > Beginner' 카테고리의 다른 글
쿠버네티스-하둡 설치 (0) | 2020.08.19 |
---|---|
Kubernetes Spark, Hadoop 설치하기 (0) | 2020.08.18 |
쿠버네티스 알아보기 (0) | 2020.07.22 |
가장 빨리 만나는 Docker 챕터 tutorial (0) | 2020.07.14 |
리눅스 커널(운영체제) 도움 사이트 링크 (0) | 2020.07.10 |