25 lines
711 B
YAML
25 lines
711 B
YAML
|
{{- if .Values.multus.enabled }}
|
||
|
kind: ConfigMap
|
||
|
apiVersion: v1
|
||
|
metadata:
|
||
|
name: multus-cni-config
|
||
|
namespace: kube-system
|
||
|
labels:
|
||
|
{{- include "kubezero-lib.labels" . | nindent 4 }}
|
||
|
data:
|
||
|
cni-conf.json: |
|
||
|
{
|
||
|
"name": "multus-cni-network",
|
||
|
"type": "multus",
|
||
|
"cniVersion": "0.3.1",
|
||
|
"capabilities": {
|
||
|
"portMappings": true
|
||
|
},
|
||
|
"kubeconfig": "/etc/cni/net.d/multus.d/multus.kubeconfig",
|
||
|
"clusterNetwork": {{ .Values.multus.clusterNetwork | quote }},
|
||
|
"defaultNetworks": {{ .Values.multus.defaultNetworks | toJson }},
|
||
|
"systemNamespaces": [""],
|
||
|
"readinessindicatorfile": {{ .Values.multus.readinessindicatorfile | quote }}
|
||
|
}
|
||
|
{{- end }}
|