sigs.k8s.io/cluster-api-provider-azure@v1.14.3/templates/addons/calico-dual-stack/patches/calico-config.yaml (about)

     1  kind: ConfigMap
     2  apiVersion: v1
     3  metadata:
     4    name: calico-config
     5    namespace: kube-system
     6  data:
     7    cni_network_config: |-
     8      {
     9        "name": "k8s-pod-network",
    10        "cniVersion": "0.3.1",
    11        "plugins": [
    12          {
    13            "type": "calico",
    14            "log_level": "info",
    15            "log_file_path": "/var/log/calico/cni/cni.log",
    16            "datastore_type": "kubernetes",
    17            "nodename": "__KUBERNETES_NODE_NAME__",
    18            "mtu": 1500,
    19            "ipam": {
    20                "type": "host-local",
    21                "ranges": [
    22                  [
    23                    {
    24                      "subnet": "usePodCidr"
    25                    }
    26                  ],
    27                  [
    28                    {
    29                      "subnet": "usePodCidrIPv6"
    30                    }
    31                  ]
    32                ]
    33            },
    34            "policy": {
    35                "type": "k8s"
    36            },
    37            "kubernetes": {
    38                "kubeconfig": "__KUBECONFIG_FILEPATH__"
    39            }
    40          },
    41          {
    42            "type": "portmap",
    43            "snat": true,
    44            "capabilities": {"portMappings": true}
    45          },
    46          {
    47            "type": "bandwidth",
    48            "capabilities": {"bandwidth": true}
    49          }
    50        ]
    51      }