20 lines
379 B
YAML
20 lines
379 B
YAML
{{- range .Values.L2Advertisements }}
|
|
---
|
|
apiVersion: metallb.io/v1beta1
|
|
kind: L2Advertisement
|
|
metadata:
|
|
name: {{ .name }}
|
|
spec:
|
|
ipAddressPools:
|
|
{{- range .addressPools }}
|
|
- {{ . }}
|
|
{{- end }}
|
|
{{- if .nodeSelectors }}
|
|
{{- range .nodeSelectors }}
|
|
nodeSelectors:
|
|
- matchLabels:
|
|
kubernetes.io/hostname: {{ . }}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- end }}
|