主题
Kubernetes 扩展 Node
1. ssh双向免密
ssh-keygen
ssh-copy-id root@192.168.60.128 # node上执行
ssh-copy-id root@192.168.60.129 # master上执行2. 初始化node环境
bash
# bash init-node.sh
Synchronizing state of ufw.service with SysV service script with /usr/lib/systemd/systemd-sysv-install.
Executing: /usr/lib/systemd/systemd-sysv-install disable ufw
Removed '/etc/systemd/system/multi-user.target.wants/ufw.service'.
192.168.60.128 master
Master hosts entry added successfully
192.168.60.129 node
Node hosts entry added successfully
net.bridge.bridge-nf-call-iptables = 1
net.ipv4.ip_forward = 13. 安装containerd
bash
# bash install.sh
./
./sbr
./tap
./dhcp
./dummy
./bridge
./host-device
./README.md
./LICENSE
./static
./portmap
./host-local
./firewall
./tuning
./vlan
./ptp
./macvlan
./loopback
./ipvlan
./vrf
./bandwidth
开始安装containerd
bin/
bin/containerd
bin/containerd-stress
bin/ctr
bin/containerd-shim-runc-v2
Created symlink '/etc/systemd/system/multi-user.target.wants/containerd.service' → '/usr/lib/systemd/system/containerd.service'.
containerd 安装成功
crictl4. 在master上执行add-node.sh
bash
# 修改脚本中的IP
bash add-node.sh5. 在node上执行add-node.sh
bash
bash add-node.sh