Skip to content

Commit b00bdc7

Browse files
committed
Keepalived health script install bugfix
Signed-off-by: Lazar Cvetković <[email protected]>
1 parent fa014a2 commit b00bdc7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/setup/setup.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -301,18 +301,18 @@ func SetupSystem(haMode string) error {
301301
return err
302302
}
303303

304-
err = utils.CopyToDir(path.Join(k8s_ha_path, "check_apiserver.yaml"), "/etc/keepalived/check_apiserver.sh", true)
304+
err = utils.CopyToDir(path.Join(k8s_ha_path, "check_apiserver.sh"), "/etc/keepalived/check_apiserver.sh", true)
305305
if !utils.CheckErrorWithMsg(err, "Failed to copy files to /etc/keepalived/check_apiserver.sh!\n") {
306306
return err
307307
}
308308

309309
if haMode == "MASTER" {
310-
err = utils.CopyToDir(path.Join(k8s_ha_path, "keepalived_master.yaml"), "/etc/keepalived/keepalived.conf", true)
310+
err = utils.CopyToDir(path.Join(k8s_ha_path, "keepalived_master.conf"), "/etc/keepalived/keepalived.conf", true)
311311
if !utils.CheckErrorWithMsg(err, "Failed to copy files to /etc/keepalived/keepalived.conf!\n") {
312312
return err
313313
}
314314
} else {
315-
err = utils.CopyToDir(path.Join(k8s_ha_path, "keepalived_backup.yaml"), "/etc/keepalived/keepalived.conf", true)
315+
err = utils.CopyToDir(path.Join(k8s_ha_path, "keepalived_backup.conf"), "/etc/keepalived/keepalived.conf", true)
316316
if !utils.CheckErrorWithMsg(err, "Failed to copy files to /etc/keepalived/keepalived.conf!\n") {
317317
return err
318318
}

0 commit comments

Comments
 (0)