Add support for IPv6 to machine and cluster chart
[icn.git] / deploy / cluster / templates / ippool.yaml
1 {{- if .Values.ipPools }}
2 {{- range $name, $pool := .Values.ipPools }}
3 ---
4 apiVersion: ipam.metal3.io/v1alpha1
5 kind: IPPool
6 metadata:
7   name: {{ $.Values.clusterName }}-{{ $name }}
8 spec:
9   clusterName: {{ $.Values.clusterName }}
10   namePrefix: {{ $.Values.clusterName }}
11   pools:
12 {{- if (and $pool.start $pool.end) }}
13   - start: {{ $pool.start }}
14     end: {{ $pool.end }}
15 {{- end }}
16   prefix: {{ $pool.prefix }}
17 {{- if $pool.gateway }}
18   gateway: {{ $pool.gateway }}
19 {{- end }}
20 {{- if $pool.preAllocations }}
21   preAllocations:
22 {{ toYaml $pool.preAllocations | indent 4 }}
23 {{- end }}
24 {{- end }}
25 {{- end }}