kubekey icon indicating copy to clipboard operation
kubekey copied to clipboard

When the host ip address is changed and redeployed, etcd will still use the certificate generated for the previous ip

Open RonaldFletcher opened this issue 1 year ago β€’ 0 comments

What is version of KubeKey has the issue?

v3.0.13

What is your os environment?

Ubuntu 20.04

KubeKey config file

No response

A clear and concise description of what happend.

When the ip address of the host is changed and redeployed, etcd will still use the certificate generated by the previous ip, resulting in the failure of the etcd certificate when redeploying, which should be cleaned up when deleting clusters. The certificate under the current kk working directory kubekey/pki/etcd should be removed.

CleanShot 2024-01-31 at 15 19 39

kubekey 代码逻辑如下 CleanShot 2024-01-31 at 15 22 55@2x

Relevant log output

No response

Additional information

No response

RonaldFletcher avatar Jan 31 '24 07:01 RonaldFletcher