Kubectl代理显示由未知授权机构签名的证书 [英] Kubectl proxy shows certificate signed by unknown authority

查看:96
本文介绍了Kubectl代理显示由未知授权机构签名的证书的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

What is the cause of the http: proxy error: x509: certificate signed by unknown authority when starting kubectl proxy with a specific IP of the node?

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")

推荐答案

找到了原因.尚未在下面执行.

Found the cause. Has not executed below.

export KUBECONFIG=/etc/kubernetes/admin.conf

这篇关于Kubectl代理显示由未知授权机构签名的证书的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆