通过 curl 命令访问 K8S API

参考链接:https://blog.csdn.net/anqixiang/article/details/114435934

curl https://127.0.0.1:6443/api/v1/nodes \
--cacert /etc/kubernetes/pki/ca.crt \
--cert /etc/kubernetes/pki/apiserver-kubelet-client.crt \
--key /etc/kubernetes/pki/apiserver-kubelet-client.key  

 

posted @ 2021-08-06 15:02  salami_china  阅读(447)  评论(0编辑  收藏  举报