【发布时间】:2020-06-20 23:10:19
【问题描述】:
想问一下如何从microk8s集群访问Kubelet API。
我查看了url,它说 Kubelet API 需要客户端证书。
所以我称之为(来自/var/snap/microk8s/current/certs)
curl -v https://127.0.0.1:10250 --cert ca.crt --cert-type PEM --cacert ca.crt --key ca.key
但我收到错误消息:
curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.
我该如何解决这个问题?还有,microk8s中的kubelet.crt、server.crt、ca.crt有什么区别?
谢谢!
【问题讨论】:
标签: ssl kubernetes kubelet microk8s