在三台etcd所在的主机上执行以下操作

1
2
3
4
5
6
7
8
9
$ cd /etc/kubernetes/pki
$ mv etcd etcd.bak
$ mkdir apiserver-etcd-client
$ mv apiserver-etcd-client.* apiserver-etcd-client/
$ kubeadm alpha phase certs etcd-ca
$ kubeadm alpha phase certs etcd-server --config=/etc/kubernetes/kubeadmcfg.yaml
$ kubeadm alpha phase certs etcd-peer --config=/etc/kubernetes/kubeadmcfg.yaml
$ kubeadm alpha phase certs etcd-healthcheck-client --config=/etc/kubernetes/kubeadmcfg.yaml
$ kubeadm alpha phase certs apiserver-etcd-client --config=/etc/kubernetes/kubeadmcfg.yaml