2022-09-11 11:54:56 +00:00
|
|
|
{{- if and .Values.multus.enabled .Values.calico.enabled }}
|
2022-07-14 14:59:06 +00:00
|
|
|
apiVersion: k8s.cni.cncf.io/v1
|
|
|
|
kind: NetworkAttachmentDefinition
|
|
|
|
metadata:
|
|
|
|
name: calico
|
|
|
|
namespace: kube-system
|
|
|
|
spec:
|
|
|
|
config: '{
|
|
|
|
"type": "calico",
|
|
|
|
"cniVersion": "0.3.1",
|
|
|
|
"log_level": "info",
|
|
|
|
"log_file_path": "/var/log/calico/cni/cni.log",
|
|
|
|
"datastore_type": "kubernetes",
|
2022-09-11 11:54:56 +00:00
|
|
|
"mtu": {{ .Values.calico.mtu }},
|
2022-07-14 14:59:06 +00:00
|
|
|
"ipam": {
|
|
|
|
"type": "calico-ipam"
|
|
|
|
},
|
|
|
|
"policy": {
|
|
|
|
"type": "k8s"
|
|
|
|
},
|
|
|
|
"kubernetes": {
|
|
|
|
"kubeconfig": "/etc/cni/net.d/calico-kubeconfig"
|
|
|
|
}
|
|
|
|
}'
|
|
|
|
{{- end }}
|