k8s笔记:MountVolume.SetUp failed for volume “secret-kube-etcd-client-certs“

kubesphere 安装 prometheus-k8s 报以下错误:

MountVolume.SetUp failed for volume "secret-kube-etcd-client-certs" : secret "kube-etcd-client-certs" not found

原因是:kube-etcd-client-certs 这个证书没有找到。

解决方法:

kubectl -n kubesphere-monitoring-system create secret generic kube-etcd-client-certs \
 --from-file=etcd-client-ca.crt=/etc/kubernetes/pki/etcd/ca.crt \
 --from-file=etcd-client.crt=/etc/kubernetes/pki/etcd/healthcheck-client.crt \
 --from-file=etcd-client.key=/etc/kubernetes/pki/etcd/healthcheck-client.key

你可能感兴趣的:(k8s,etcd,kubernetes)