[+] 更新 构建参数
Some checks are pending
Build Docker Image / Explore-Gitea-Actions (push) Waiting to run
Some checks are pending
Build Docker Image / Explore-Gitea-Actions (push) Waiting to run
This commit is contained in:
parent
6f59ff50e3
commit
97d3881bee
14
init-k3s.sh
14
init-k3s.sh
@ -68,7 +68,6 @@ if [ "$current_ip" == "$master" ]; then
|
||||
--cluster-cidr $pod_subnet \
|
||||
--service-cidr $service_subnet \
|
||||
--node-external-ip=$vip_ip \
|
||||
--tls-san=$vip_ip
|
||||
|
||||
|
||||
TOKEN=$(cat /var/lib/rancher/k3s/server/node-token)
|
||||
@ -88,12 +87,15 @@ curl -sSL https://git.martin98.com/MartinFarm/init/raw/branch/main/init-k3s.sh |
|
||||
EOF
|
||||
|
||||
else
|
||||
curl -sfL https://rancher-mirror.rancher.cn/k3s/k3s-install.sh | INSTALL_K3S_MIRROR=cn K3S_TOKEN=$TOKEN sh -s - server \
|
||||
--server https://$vip_ip:6443 \
|
||||
--tls-san=$vip_ip
|
||||
curl -sfL https://rancher-mirror.rancher.cn/k3s/k3s-install.sh | INSTALL_K3S_MIRROR=cn sh -s - server \
|
||||
--cluster-cidr $pod_subnet \
|
||||
--service-cidr $service_subnet \
|
||||
--node-external-ip=$vip_ip \
|
||||
--token $TOKEN \
|
||||
--server https://$master:6443
|
||||
fi
|
||||
|
||||
|
||||
kubectl get nodes
|
||||
watch kubectl get nodes
|
||||
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user