[+] node-external-ip 声明节点VIP
All checks were successful
Build Docker Image / Explore-Gitea-Actions (push) Successful in 14s

This commit is contained in:
Martin 2025-04-08 11:21:37 +08:00
parent a593dea13c
commit f3e2fe88d5

View File

@ -4,7 +4,8 @@ current_ip=$(hostname -I | awk '{print $1}')
curl -sfL https://rancher-mirror.rancher.cn/k3s/k3s-install.sh | INSTALL_K3S_MIRROR=cn sh -s - \
--cluster-cidr $pod_subnet \
--service-cidr $service_subnet
--service-cidr $service_subnet \
--node-external-ip=$vip
# 安装 keepalived
apt install -y keepalived