Capture creation of cluster into Helm chart
[icn.git] / deploy / clusters / templates / _keepalived.yaml
1 {{- define "clusters.keepalived" -}}
2 {{- if .keepalived -}}
3 - path: /etc/keepalived/keepalived.conf
4   content: |
5     ! Configuration File for keepalived
6     vrrp_instance VI_{{ .keepalived.routerId }} {
7       state MASTER
8       interface {{ .keepalived.interface }}
9       virtual_router_id {{ .keepalived.routerId }}
10       priority 101
11       advert_int 1
12       virtual_ipaddress {
13         {{ .controlPlaneEndpoint }}/{{ .controlPlanePrefix }}
14       }
15     }
16 {{- end }}
17 {{- end }}