curl 访问kube-apiserver 以及 kubectl 调用kube-apiserver
1 curlcurl https://10.0.13.181:6443 --cacert /var/jenkins_home/k8s/ssl-dev/k8s-root-ca.pem --key /var/jenkins_home/k8s/ssl-dev/admin-key.pem --cert /var/jenkins_home/k8s/ssl-dev/admin.pem2 kubectl...
·
1 curl
curl https://10.0.13.181:6443 --cacert /var/jenkins_home/k8s/ssl-dev/k8s-root-ca.pem --key /var/jenkins_home/k8s/ssl-dev/admin-key.pem --cert /var/jenkins_home/k8s/ssl-dev/admin.pem
2 kubectl
APISERVER_DEV="https://10.0.13.181:6443 --certificate-authority ${JENKINS_HOME}/k8s/ssl-dev/k8s-root-ca.pem --client-key ${JENKINS_HOME}/k8s/ssl-dev/admin-key.pem --client-certificate ${JENKINS_HOME}/k8s/ssl-dev/admin.pem"
kubectl -s ${APISERVER_DEV} command
更多推荐
已为社区贡献7条内容
所有评论(0)