Skip to content

Commit a3eeb7f

Browse files
committed
Enforce VIPs to be collocated at the same host
1 parent 6546cf2 commit a3eeb7f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

templates/master/00-master/on-prem/files/keepalived-keepalived.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,15 @@ contents:
6969
fall 2
7070
}
7171
72+
vrrp_sync_group VG1 {
73+
group {
74+
{{`{{ range $i, $config := .Configs }}`}}
75+
{{`{{ .Cluster.Name }}`}}_API_{{`{{$i}}`}}
76+
{{`{{ .Cluster.Name }}`}}_INGRESS_{{`{{$i}}`}}
77+
{{`{{ end }}`}}
78+
}
79+
}
80+
7281
{{`{{ range $i, $config := .Configs }}`}}
7382
{{`{{$nonVirtualIP := .NonVirtualIP}}`}}
7483

0 commit comments

Comments
 (0)