From f3e2fe88d5aa3766aa3e0c6286f7c3491a1a5891 Mon Sep 17 00:00:00 2001 From: Martin <1403951401@qq.com> Date: Tue, 8 Apr 2025 11:21:37 +0800 Subject: [PATCH] =?UTF-8?q?[+]=20node-external-ip=20=E5=A3=B0=E6=98=8E?= =?UTF-8?q?=E8=8A=82=E7=82=B9VIP?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- init-k3s.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/init-k3s.sh b/init-k3s.sh index 7c956a3..a636b35 100644 --- a/init-k3s.sh +++ b/init-k3s.sh @@ -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