Skip to content

Commit 5144a60

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

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

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

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,24 @@ contents:
6969
fall 2
7070
}
7171
72+
{{- if and (eq .Infra.Status.PlatformStatus.Type "OpenStack") (or (eq .IPFamilies "DualStack") (eq .IPFamilies "DualStackIPv6Primary")) }}
73+
vrrp_sync_group VG_API {
74+
group {
75+
{{`{{ range $i, $config := .Configs }}`}}
76+
{{`{{ .Cluster.Name }}`}}_API_{{`{{$i}}`}}
77+
{{`{{ end }}`}}
78+
}
79+
}
80+
81+
vrrp_sync_group VG_INGRESS {
82+
group {
83+
{{`{{ range $i, $config := .Configs }}`}}
84+
{{`{{ .Cluster.Name }}`}}_INGRESS_{{`{{$i}}`}}
85+
{{`{{ end }}`}}
86+
}
87+
}
88+
{{- end}}
89+
7290
{{`{{ range $i, $config := .Configs }}`}}
7391
{{`{{$nonVirtualIP := .NonVirtualIP}}`}}
7492

0 commit comments

Comments
 (0)