mirror of
https://github.com/kubesphere/kubekey.git
synced 2025-12-26 01:22:51 +00:00
* fix: misspelling Signed-off-by: joyceliu <joyceliu@yunify.com> * fix: misspelling Signed-off-by: joyceliu <joyceliu@yunify.com> * fix: misspelling Signed-off-by: joyceliu <joyceliu@yunify.com> * fix: misspelling Signed-off-by: joyceliu <joyceliu@yunify.com> * feat: user go-template instance pongo2-template Signed-off-by: joyceliu <joyceliu@yunify.com> * feat: not set incorrect Signed-off-by: joyceliu <joyceliu@yunify.com> * feat: more beautiful progress bar Signed-off-by: joyceliu <joyceliu@yunify.com> * feat: more beautiful progress bar Signed-off-by: joyceliu <joyceliu@yunify.com> * feat: more beautiful progress bar Signed-off-by: joyceliu <joyceliu@yunify.com> * feat: more beautiful progress bar Signed-off-by: joyceliu <joyceliu@yunify.com> * feat: more beautiful progress bar Signed-off-by: joyceliu <joyceliu@yunify.com> * feat: more beautiful progress bar Signed-off-by: joyceliu <joyceliu@yunify.com> * feat: more beautiful progress bar Signed-off-by: joyceliu <joyceliu@yunify.com> * feat: more beautiful progress bar Signed-off-by: joyceliu <joyceliu@yunify.com> * feat: more beautiful progress bar Signed-off-by: joyceliu <joyceliu@yunify.com> * feat: more beautiful progress bar Signed-off-by: joyceliu <joyceliu@yunify.com> * feat: more beautiful progress bar Signed-off-by: joyceliu <joyceliu@yunify.com> * feat: more beautiful progress bar Signed-off-by: joyceliu <joyceliu@yunify.com> * feat: more beautiful progress bar Signed-off-by: joyceliu <joyceliu@yunify.com> --------- Signed-off-by: joyceliu <joyceliu@yunify.com> Co-authored-by: joyceliu <joyceliu@yunify.com>
32 lines
709 B
Plaintext
32 lines
709 B
Plaintext
vrrp_script healthcheck {
|
|
script "/etc/keepalived/healthcheck.sh"
|
|
interval 10
|
|
fall 2
|
|
rise 2
|
|
timeout 5
|
|
init_fail
|
|
}
|
|
global_defs {
|
|
script_user root
|
|
router_id harbor-ha
|
|
enable_script_security
|
|
lvs_sync_daemon ens3 VI_1
|
|
}
|
|
vrrp_instance VI_1 {
|
|
state BACKUP
|
|
interface ens3
|
|
virtual_router_id 31
|
|
priority 50
|
|
advert_int 1
|
|
authentication {
|
|
auth_type PASS
|
|
auth_pass k8s-test
|
|
}
|
|
virtual_ipaddress {
|
|
{{ .image_registry.ha_vip }}
|
|
}
|
|
track_script {
|
|
healthcheck
|
|
}
|
|
}
|