3e3dadb8b7
Azure does not currently suport Calico networking. As a workaround, this patch set includes CAPZ Calico manifests that uses VXLAN, instead. The CAPZ Calico manifest are located under manifest/function/cni/calico-capz. Change-Id: Iadb2d5e10131e6a2df8cef49e2ec189ab948eeb9
52 lines
1.3 KiB
YAML
52 lines
1.3 KiB
YAML
---
|
|
# Source: calico/templates/calico-config.yaml
|
|
# This ConfigMap is used to configure a self-hosted Calico installation.
|
|
kind: ConfigMap
|
|
apiVersion: v1
|
|
metadata:
|
|
name: calico-config
|
|
namespace: kube-system
|
|
data:
|
|
# Typha is disabled.
|
|
typha_service_name: "none"
|
|
# Configure the backend to use.
|
|
calico_backend: "vxlan"
|
|
|
|
# Configure the MTU to use
|
|
veth_mtu: "1440"
|
|
|
|
# The CNI network configuration to install on each node. The special
|
|
# values in this config will be automatically populated.
|
|
cni_network_config: |-
|
|
{
|
|
"name": "k8s-pod-network",
|
|
"cniVersion": "0.3.1",
|
|
"plugins": [
|
|
{
|
|
"type": "calico",
|
|
"log_level": "info",
|
|
"datastore_type": "kubernetes",
|
|
"nodename": "__KUBERNETES_NODE_NAME__",
|
|
"mtu": __CNI_MTU__,
|
|
"ipam": {
|
|
"type": "calico-ipam"
|
|
},
|
|
"policy": {
|
|
"type": "k8s"
|
|
},
|
|
"kubernetes": {
|
|
"kubeconfig": "__KUBECONFIG_FILEPATH__"
|
|
}
|
|
},
|
|
{
|
|
"type": "portmap",
|
|
"snat": true,
|
|
"capabilities": {"portMappings": true}
|
|
},
|
|
{
|
|
"type": "bandwidth",
|
|
"capabilities": {"bandwidth": true}
|
|
}
|
|
]
|
|
}
|