2022-09-11 21:47:55 +00:00
|
|
|
{{- range .Values.ipAddressPools }}
|
2022-09-13 18:17:28 +00:00
|
|
|
{{- if $.Release.IsInstall }}
|
2022-09-13 14:16:16 +00:00
|
|
|
{{- fail "Please only add MetalLB configuration after initial installation" }}
|
|
|
|
{{- end }}
|
2022-09-11 21:47:55 +00:00
|
|
|
---
|
|
|
|
apiVersion: metallb.io/v1beta1
|
|
|
|
kind: IPAddressPool
|
|
|
|
metadata:
|
2022-09-13 11:58:45 +00:00
|
|
|
name: {{ .name }}
|
2022-09-11 21:47:55 +00:00
|
|
|
spec:
|
|
|
|
addresses:
|
2022-09-13 11:58:45 +00:00
|
|
|
{{- range .addresses }}
|
2022-09-11 21:47:55 +00:00
|
|
|
- {{ . }}
|
|
|
|
{{- end }}
|
2022-09-13 11:58:45 +00:00
|
|
|
autoAssign: {{ .autoAssign | default true }}
|
|
|
|
avoidBuggyIPs: {{ .avoidBuggyIPs | default false }}
|
2022-09-11 21:47:55 +00:00
|
|
|
{{- end }}
|