master:1.1.1.1
node-1:2.2.2.2
node-2:3.3.3.3
1、关闭防火墙
firewalld和iptables
2、k3s主节点执行
curl -sfL https://rancher-mirror.rancher.cn/k3s/k3s-install.sh | K3S_TOKEN=TTTTOOOOKKKK sh -s - \
--node-external-ip="1.1.1.1" \
--disable traefik \
--flannel-backend=wireguard-native \
--flannel-external-ip
[INFO] Creating /usr/local/bin/kubectl symlink to k3s
[INFO] Creating /usr/local/bin/crictl symlink to k3s
[INFO] Creating /usr/local/bin/ctr symlink to k3s
[INFO] Creating killall script /usr/local/bin/k3s-killall.sh
[INFO] Creating uninstall script /usr/local/bin/k3s-uninstall.sh
[INFO] env: Creating environment file /etc/systemd/system/k3s.service.env
[INFO] systemd: Creating service file /etc/systemd/system/k3s.service
[INFO] systemd: Enabling k3s unit
Created symlink from /etc/systemd/system/multi-user.target.wants/k3s.service to /etc/systemd/system/k3s.service.
[INFO] systemd: Starting k3s
继续阅读CentOS7安装k3s →