2018-09-18 19:29:53 +08:00
|
|
|
# see roles/network_plugin/calico/defaults/main.yml
|
|
|
|
|
2018-09-19 02:30:49 +08:00
|
|
|
## With calico it is possible to distributed routes with border routers of the datacenter.
|
|
|
|
## Warning : enabling router peering will disable calico's default behavior ('node mesh').
|
|
|
|
## The subnets of each nodes will be distributed by the datacenter router
|
2019-04-01 17:38:33 +08:00
|
|
|
# peer_with_router: false
|
2018-09-19 02:30:49 +08:00
|
|
|
|
2018-09-18 19:29:53 +08:00
|
|
|
# Enables Internet connectivity from containers
|
|
|
|
# nat_outgoing: true
|
|
|
|
|
|
|
|
# add default ippool name
|
|
|
|
# calico_pool_name: "default-pool"
|
|
|
|
|
2019-09-25 19:44:00 +08:00
|
|
|
# add default ippool blockSize (defaults kube_network_node_prefix)
|
|
|
|
# calico_pool_blocksize: 24
|
|
|
|
|
2019-02-01 05:39:13 +08:00
|
|
|
# add default ippool CIDR (must be inside kube_pods_subnet, defaults to kube_pods_subnet otherwise)
|
|
|
|
# calico_pool_cidr: 1.2.3.4/5
|
|
|
|
|
2018-09-18 19:29:53 +08:00
|
|
|
# Global as_num (/calico/bgp/v1/global/as_num)
|
|
|
|
# global_as_num: "64512"
|
|
|
|
|
|
|
|
# You can set MTU value here. If left undefined or empty, it will
|
|
|
|
# not be specified in calico CNI config, so Calico will use built-in
|
|
|
|
# defaults. The value should be a number, not a string.
|
|
|
|
# calico_mtu: 1500
|
2019-01-29 03:03:49 +08:00
|
|
|
|
2020-06-30 05:39:58 +08:00
|
|
|
# Configure the MTU to use for workload interfaces and tunnels.
|
|
|
|
# - If Wireguard is enabled, set to your network MTU - 60
|
|
|
|
# - Otherwise, if VXLAN or BPF mode is enabled, set to your network MTU - 50
|
|
|
|
# - Otherwise, if IPIP is enabled, set to your network MTU - 20
|
|
|
|
# - Otherwise, if not using any encapsulation, set to your network MTU.
|
|
|
|
# calico_veth_mtu: 1440
|
|
|
|
|
2019-01-29 03:03:49 +08:00
|
|
|
# Advertise Cluster IPs
|
|
|
|
# calico_advertise_cluster_ips: true
|
2019-04-25 20:00:48 +08:00
|
|
|
|
|
|
|
# Choose data store type for calico: "etcd" or "kdd" (kubernetes datastore)
|
|
|
|
# calico_datastore: "etcd"
|
|
|
|
|
2020-04-27 15:03:39 +08:00
|
|
|
# Choose Calico iptables backend: "Legacy", "Auto" or "NFT"
|
|
|
|
# calico_iptables_backend: "Legacy"
|
2020-01-08 18:27:40 +08:00
|
|
|
|
2019-04-25 20:00:48 +08:00
|
|
|
# Use typha (only with kdd)
|
|
|
|
# typha_enabled: false
|
|
|
|
|
2019-10-17 22:02:38 +08:00
|
|
|
# Generate TLS certs for secure typha<->calico-node communication
|
|
|
|
# typha_secure: false
|
|
|
|
|
2020-01-10 16:24:33 +08:00
|
|
|
# Scaling typha: 1 replica per 100 nodes is adequate
|
2019-04-25 20:00:48 +08:00
|
|
|
# Number of typha replicas
|
|
|
|
# typha_replicas: 1
|
2020-01-10 16:24:33 +08:00
|
|
|
|
|
|
|
# Set max typha connections
|
|
|
|
# typha_max_connections_lower_limit: 300
|
2020-02-14 05:18:36 +08:00
|
|
|
|
2020-03-12 16:20:37 +08:00
|
|
|
# Set calico network backend: "bird", "vxlan" or "none"
|
|
|
|
# bird enable BGP routing, required for ipip mode.
|
|
|
|
# calico_network_backend: bird
|
|
|
|
|
|
|
|
# IP in IP and VXLAN is mutualy exclusive modes.
|
|
|
|
# set IP in IP encapsulation mode: "Always", "CrossSubnet", "Never"
|
|
|
|
# calico_ipip_mode: 'Always'
|
|
|
|
|
|
|
|
# set VXLAN encapsulation mode: "Always", "CrossSubnet", "Never"
|
|
|
|
# calico_vxlan_mode: 'Never'
|
|
|
|
|
2020-02-14 05:18:36 +08:00
|
|
|
# If you want to use non default IP_AUTODETECTION_METHOD for calico node set this option to one of:
|
|
|
|
# * can-reach=DESTINATION
|
|
|
|
# * interface=INTERFACE-REGEX
|
|
|
|
# see https://docs.projectcalico.org/reference/node/configuration
|
|
|
|
# calico_ip_auto_method: "interface=eth.*"
|
2020-03-14 21:36:35 +08:00
|
|
|
# Choose the iptables insert mode for Calico: "Insert" or "Append".
|
|
|
|
# calico_felix_chaininsertmode: Insert
|