1234567891011121314151617181920212223242526272829 |
- {{- if .Values.multus }}
- apiVersion: "k8s.cni.cncf.io/v1"
- kind: NetworkAttachmentDefinition
- metadata:
- name: {{ .Release.Name }}-net
- spec:
- {{- with .Values.multus }}
- config: '{
- "cniVersion": "0.3.1",
- "type": "macvlan",
- "master": "{{ .masterIface }}",
- "mode": "bridge",
- "ipam": {
- "type": "static",
- "addresses": [ {
- "address": "{{ .internalIP }}",
- "gateway": "{{ .internalGW }}"
- }{{- if .externalIP }},
- {
- "address":"{{ .externalIP }}"
- }{{- end }}
- ],
- "routes": [
- { "dst": "0.0.0.0/0" }
- ]
- }
- }'
- {{- end }}
- {{- end }}
|