黄沙百战穿金甲,不破楼兰终不还。这篇文章主要讲述#yyds干货盘点# kubeadm添加新master或node相关的知识,希望能为你提供帮助。
一、首先在master上生成新的token
【#yyds干货盘点# kubeadm添加新master或node】?
kubeadm token create --print-join-command
kubeadm token create --print-join-comman
范例
[root@cn-hongkong nfs]# kubeadm token create --print-join-command
kubeadm join 172.31.182.156:8443 --token ortvag.ra0654faci8y8903--discovery-token-ca-cert-hash sha256:04755ff1aa88e7db283c85589bee31fabb7d32186612778e53a536a297fc9010
?
?二、在master上生成用于新master加入的证书
?
kubeadm init phase upload-certs --experimental-upload-certs
范例
[root@cn-hongkong k8s_yaml]# kubeadm init phase upload-certs --experimental-upload-certs
[upload-certs] Storing the certificates in ConfigMap "kubeadm-certs" in the "kube-system" Namespace
[upload-certs] Using certificate key:
f8d1c027c01baef6985ddf24266641b7c64f9fd922b15a32fce40b6b4b21e47d
?
?三、添加新node
?
?
kubeadm join 172.31.182.156:8443 --token ortvag.ra0654faci8y8903--discovery-token-ca-cert-hash sha256:04755ff1aa88e7db283c85589bee31fabb7d32186612778e53a536a297fc9010
? 四、添加新master,把红色部分加到--experimental-control-plane --certificate-key后。
?
kubeadm join 172.31.182.156:8443--token ortvag.ra0654faci8y8903 \\
--discovery-token-ca-cert-hash sha256:04755ff1aa88e7db283c85589bee31fabb7d32186612778e53a536a297fc9010 \\
--experimental-control-plane --certificate-key f8d1c027c01baef6985ddf24266641b7c64f9fd922b15a32fce40b6b4b21e47d
?
?
推荐阅读
- SSM项目配置 拦截器#私藏项目实操分享#
- #yyds干货盘点#你真的知道Spring注解驱动的前世今生吗(这篇文章让你豁然开朗!)
- Azure Virtual Desktop-3-配置Azure文件共享及配置用户配置文件漫游
- 部署OpenGauss DB一主二备集群
- Java 项目中使用 Resilience4j 框架实现异步超时处理
- Linux进程和任务管理
- #yyds干货盘点# RPCRESTGraphQL接口类型概述
- #yyds干货盘点# 6. Python 元组,不可变的列表,滚雪球学 Python
- 用户增长分析模型,该如何搭建