欢迎转载,但请在开头或结尾注明原文出处【blog.chaosjohn.com】
报错如下:
1 | $ kubectl get po -A |
stackoverflow上《kubectl unable to connect to server: x509: certificate signed by unknown authority》和《helm: x509: certificate signed by unknown authority》,介绍了以下几种办法:
1 | # extract <-----BEGIN/END CERTIFICATE-----> from openssl to ~/.kube/myCert.crt |
1 | $ kubectl --insecure-skip-tls-verify ... |
1 | $ cat ~/.kube/insecure-skip-tls-verify.sample.yaml |
参考资料:
- kubectl unable to connect to server: x509: certificate signed by unknown authority
- helm: x509: certificate signed by unknown authority
- Is there a way to access microk8s using kubectl outside the local network
- Unable to connect to the server: x509: certificate signed by unknown authority #823
- Cannot connect to microk8s from another machine #421 → method_possible
最后,如果该文对读者有些许帮助,考虑下给点捐助鼓励一下呗😊