用节点的特定IP启动 kubectl代理时, http:代理错误:x509:由未知权限签名的证书的原因是什么?

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

关于proxy - Kubectl代理显示由未知授权机构签名的证书,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/47938669/

10-16 12:32