1 Star 0 Fork 0

写意 / centos8.2-k8s-init

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
init-node1.sh 392 Bytes
一键复制 编辑 原始数据 按行查看 历史
root 提交于 2022-10-25 00:42 . 增加权限
#!/bin/bash
hostnamectl set-hostname k8s-node1
# 2.添加host
cat >> /etc/hosts << EOF
192.168.1.73 k8s-master
192.168.1.152 k8s-node1
192.168.1.245 k8s-node2
EOF
kubeadm join k8s-master:6443 --token 1vpqda.t0ws57wiiogadc58 \
--discovery-token-ca-cert-hash sha256:6e4e100441f40a42b57829f738633f2c136fa2e67d6476b1d2891552abfd1461 --cri-socket=unix:///var/run/cri-dockerd.sock
1
https://gitee.com/www.topwhere.cn/centos8.2-k8s-init.git
git@gitee.com:www.topwhere.cn/centos8.2-k8s-init.git
www.topwhere.cn
centos8.2-k8s-init
centos8.2-k8s-init
master

搜索帮助