Kubectl 代理显示由未知授权机构签署的证书
Kubectl proxy shows certificate signed by unknown authority
问题
http: proxy error: x509: certificate signed by unknown authority 的原因是什么 kubectl proxy 启动时 kubectl proxy节点IP?
kubectl proxy --port=8001 --address=172.31.0.16 --accept-hosts='172.31.0.16'
I1222 09:00:03.471836 16775 logs.go:41] http: proxy error: x509: certificate signed by unknown authority (possibly because of "crypto/rsa: verification error" while trying to verify candidate authority certificate "kubernetes")
找到原因了。下面还没有执行。
export KUBECONFIG=/etc/kubernetes/admin.conf
问题
http: proxy error: x509: certificate signed by unknown authority 的原因是什么 kubectl proxy 启动时 kubectl proxy节点IP?
kubectl proxy --port=8001 --address=172.31.0.16 --accept-hosts='172.31.0.16'
I1222 09:00:03.471836 16775 logs.go:41] http: proxy error: x509: certificate signed by unknown authority (possibly because of "crypto/rsa: verification error" while trying to verify candidate authority certificate "kubernetes")
找到原因了。下面还没有执行。
export KUBECONFIG=/etc/kubernetes/admin.conf