Grow the Cluster
Grow the Cluster on Ubuntu
环境准备
环境
说明
# sudo执行命令
sudo -i
# 更新系统
apt-get update && apt-get upgrade -y
# 关闭swap分区
swapoff -a
#vim /etc/fstab
#注释掉/swapfile所在行
# 关闭并禁用防火墙
systemctl stop ufw
systemctl disable ufw
# 安装软件包
apt-get install curl net-tools vim -y
K8s部署
1. 安装 Docker
2. 配置 K8s 源
3. 为软件包添加 GPG 密钥
4. 更新软件仓库
5. 安装 kubeadm
6. 查看 token ,生成 token(cp节点)
7. 创建 Discovery Token CA Cert Hash(cp节点)
8. 在 worker01 节点上添加 cp 节点的本地DNS别名
9. 在 worker01 节点上使用6、7步骤生成的 token 和 hash 加入集群
10. cp 节点上查看节点
Last updated