[+] 支持 etcd
All checks were successful
Build Docker Image / Explore-Gitea-Actions (push) Successful in 9s
All checks were successful
Build Docker Image / Explore-Gitea-Actions (push) Successful in 9s
This commit is contained in:
parent
c246adc39e
commit
b7e78c1b43
@ -4,6 +4,7 @@ current_ip=$(hostname -I | awk '{print $1}')
|
||||
|
||||
# 镜像加速
|
||||
mkdir /etc/rancher/k3s -p
|
||||
|
||||
cat <<EOF > /etc/rancher/k3s/registries.yaml
|
||||
mirrors:
|
||||
docker.io:
|
||||
@ -38,6 +39,7 @@ else
|
||||
fi
|
||||
|
||||
# 初始化 VIP
|
||||
mkdir /etc/keepalived
|
||||
cat <<EOF | sudo tee /etc/keepalived/keepalived.conf
|
||||
vrrp_instance VI_1 {
|
||||
state $state
|
||||
@ -50,6 +52,7 @@ vrrp_instance VI_1 {
|
||||
}
|
||||
}
|
||||
EOF
|
||||
|
||||
sudo systemctl restart keepalived
|
||||
systemctl status keepalived &
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user