Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

生成controllermanager scheduler的kubeconfig #1

Open
fanux opened this issue Apr 29, 2020 · 1 comment
Open

生成controllermanager scheduler的kubeconfig #1

fanux opened this issue Apr 29, 2020 · 1 comment

Comments

@fanux
Copy link
Member

fanux commented Apr 29, 2020

老版本证书时间是99年但是没有更新scheduler和manager的kubeconfig, 可以使用本工具进行更新

sealctl user -u system:kube-scheduler -o scheduler.conf --ca-crt /etc/kubernetes/pki/ca.crt --ca-key /etc/kubernetes/pki/ca.key
sealctl user -u system:kube-controller-manager -o controller-manager.conf --ca-crt /etc/kubernetes/pki/ca.crt --ca-key /etc/kubernetes/pki/ca.key

然后拷贝到每个master的/etc/kubernetes目录下,覆盖老的,然后重启scheduler和controller-manager即可。

注意备份好老的conf防止出错需要回滚

@fanux
Copy link
Member Author

fanux commented Apr 29, 2020

kubeadm alpha certs check-expiration

然后用上面命令检查过期时间

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant