Jestin Blog

kubernetes 下的文章

Jun 24 , 2022

kubernetes etcd 节点扩容

kubernetes etcd 节点扩容 需要原ca证书、ca配置文件 ca.pem ca-key.pem ca-config 修改证书配置文件 etcd-peer-req-csr.json hosts字段中添加节点ip和主机名 生成peer证书 cfssl gencert -ca=ca.pem -ca-key=ca-key.pem -config=ca-config -profile=pe...
Jun 24 , 2022

kubernetes master 节点扩容

kubernetes master 节点扩容 导出kubeadm配置 kubectl -n kube-system get configmap kubeadm-config -o jsonpath='{.data.ClusterConfiguration}' > kubeadm-init.yaml 要有controlPaneEndpoint字段 kubectl edit cm -n k...
Jun 24 , 2022

failed to update lease, error: Operation cannot be fulfilled on leases.coordination.k8s.io "xxx": the object has been modified; please apply your changes to the latest version and try again

k8s集群报错 ** 所有k8s节点/var/log/message中报错如下,反复执行kubectl命令后,返回pod运行状态反复在变化。 ** failed to update lease, error: Operation cannot be fulfilled on leases.coordination.k8s.io "kube-master2.cjestin.com&qu...