2022-05-12 15:29:14 +00:00
|
|
|
---
|
2018-09-18 11:29:53 +00:00
|
|
|
# see roles/network_plugin/calico/defaults/main.yml
|
|
|
|
|
2022-05-12 15:29:14 +00:00
|
|
|
# the default value of name
|
|
|
|
calico_cni_name: k8s-pod-network
|
|
|
|
|
2018-09-18 18:30:49 +00: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 09:38:33 +00:00
|
|
|
# peer_with_router: false
|
2018-09-18 18:30:49 +00:00
|
|
|
|
2018-09-18 11:29:53 +00:00
|
|
|
# Enables Internet connectivity from containers
|
|
|
|
# nat_outgoing: true
|
|
|
|
|
2020-09-17 09:44:46 +00:00
|
|
|
# Enables Calico CNI "host-local" IPAM plugin
|
|
|
|
# calico_ipam_host_local: true
|
|
|
|
|
2018-09-18 11:29:53 +00:00
|
|
|
# add default ippool name
|
|
|
|
# calico_pool_name: "default-pool"
|
|
|
|
|
2019-09-25 11:44:00 +00:00
|
|
|
# add default ippool blockSize (defaults kube_network_node_prefix)
|
2022-07-19 20:05:27 +00:00
|
|
|
calico_pool_blocksize: 26
|
2019-09-25 11:44:00 +00:00
|
|
|
|
2019-01-31 21:39:13 +00: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
|
|
|
|
|
2022-05-20 06:45:13 +00:00
|
|
|
# add default ippool CIDR to CNI config
|
|
|
|
# calico_cni_pool: true
|
|
|
|
|
2020-10-26 07:10:53 +00:00
|
|
|
# Add default IPV6 IPPool CIDR. Must be inside kube_pods_subnet_ipv6. Defaults to kube_pods_subnet_ipv6 if not set.
|
|
|
|
# calico_pool_cidr_ipv6: fd85:ee78:d8a6:8607::1:0000/112
|
|
|
|
|
2022-05-20 06:45:13 +00:00
|
|
|
# Add default IPV6 IPPool CIDR to CNI config
|
|
|
|
# calico_cni_pool_ipv6: true
|
|
|
|
|
2018-09-18 11:29:53 +00:00
|
|
|
# Global as_num (/calico/bgp/v1/global/as_num)
|
|
|
|
# global_as_num: "64512"
|
|
|
|
|
2020-12-18 06:54:25 +00:00
|
|
|
# If doing peering with node-assigned asn where the globas does not match your nodes, you want this
|
|
|
|
# to be true. All other cases, false.
|
|
|
|
# calico_no_global_as_num: false
|
|
|
|
|
2018-09-18 11:29:53 +00:00
|
|
|
# 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-28 19:03:49 +00:00
|
|
|
|
2020-06-29 21:39:58 +00:00
|
|
|
# Configure the MTU to use for workload interfaces and tunnels.
|
2021-06-28 06:59:25 +00:00
|
|
|
# - If Wireguard is enabled, subtract 60 from your network MTU (i.e 1500-60=1440)
|
|
|
|
# - Otherwise, if VXLAN or BPF mode is enabled, subtract 50 from your network MTU (i.e. 1500-50=1450)
|
|
|
|
# - Otherwise, if IPIP is enabled, subtract 20 from your network MTU (i.e. 1500-20=1480)
|
|
|
|
# - Otherwise, if not using any encapsulation, set to your network MTU (i.e. 1500)
|
2020-06-29 21:39:58 +00:00
|
|
|
# calico_veth_mtu: 1440
|
|
|
|
|
2019-01-28 19:03:49 +00:00
|
|
|
# Advertise Cluster IPs
|
|
|
|
# calico_advertise_cluster_ips: true
|
2019-04-25 12:00:48 +00:00
|
|
|
|
2020-11-25 13:34:39 +00:00
|
|
|
# Advertise Service External IPs
|
|
|
|
# calico_advertise_service_external_ips:
|
|
|
|
# - x.x.x.x/24
|
|
|
|
# - y.y.y.y/32
|
|
|
|
|
2021-05-12 12:22:17 +00:00
|
|
|
# Adveritse Service LoadBalancer IPs
|
|
|
|
# calico_advertise_service_loadbalancer_ips:
|
|
|
|
# - x.x.x.x/24
|
|
|
|
# - y.y.y.y/16
|
|
|
|
|
2019-04-25 12:00:48 +00:00
|
|
|
# Choose data store type for calico: "etcd" or "kdd" (kubernetes datastore)
|
2021-04-27 22:45:28 +00:00
|
|
|
# calico_datastore: "kdd"
|
2019-04-25 12:00:48 +00:00
|
|
|
|
2020-04-27 07:03:39 +00:00
|
|
|
# Choose Calico iptables backend: "Legacy", "Auto" or "NFT"
|
2022-01-24 07:47:57 +00:00
|
|
|
# calico_iptables_backend: "Auto"
|
2020-01-08 10:27:40 +00:00
|
|
|
|
2019-04-25 12:00:48 +00:00
|
|
|
# Use typha (only with kdd)
|
|
|
|
# typha_enabled: false
|
|
|
|
|
2019-10-17 14:02:38 +00:00
|
|
|
# Generate TLS certs for secure typha<->calico-node communication
|
|
|
|
# typha_secure: false
|
|
|
|
|
2020-01-10 08:24:33 +00:00
|
|
|
# Scaling typha: 1 replica per 100 nodes is adequate
|
2019-04-25 12:00:48 +00:00
|
|
|
# Number of typha replicas
|
|
|
|
# typha_replicas: 1
|
2020-01-10 08:24:33 +00:00
|
|
|
|
|
|
|
# Set max typha connections
|
|
|
|
# typha_max_connections_lower_limit: 300
|
2020-02-13 21:18:36 +00:00
|
|
|
|
2020-03-12 08:20:37 +00:00
|
|
|
# Set calico network backend: "bird", "vxlan" or "none"
|
2022-03-18 01:05:39 +00:00
|
|
|
# bird enable BGP routing, required for ipip and no encapsulation modes
|
|
|
|
# calico_network_backend: vxlan
|
2020-03-12 08:20:37 +00:00
|
|
|
|
|
|
|
# IP in IP and VXLAN is mutualy exclusive modes.
|
|
|
|
# set IP in IP encapsulation mode: "Always", "CrossSubnet", "Never"
|
2022-03-18 01:05:39 +00:00
|
|
|
# calico_ipip_mode: 'Never'
|
2020-03-12 08:20:37 +00:00
|
|
|
|
|
|
|
# set VXLAN encapsulation mode: "Always", "CrossSubnet", "Never"
|
2022-03-18 01:05:39 +00:00
|
|
|
# calico_vxlan_mode: 'Always'
|
2020-03-12 08:20:37 +00:00
|
|
|
|
2020-09-22 08:04:48 +00:00
|
|
|
# set VXLAN port and VNI
|
|
|
|
# calico_vxlan_vni: 4096
|
|
|
|
# calico_vxlan_port: 4789
|
|
|
|
|
2021-09-24 16:57:23 +00:00
|
|
|
# Cenable eBPF mode
|
|
|
|
# calico_bpf_enabled: false
|
|
|
|
|
2022-02-15 01:26:14 +00:00
|
|
|
# If you want to use non default IP_AUTODETECTION_METHOD, IP6_AUTODETECTION_METHOD for calico node set this option to one of:
|
2020-02-13 21:18:36 +00:00
|
|
|
# * can-reach=DESTINATION
|
|
|
|
# * interface=INTERFACE-REGEX
|
|
|
|
# see https://docs.projectcalico.org/reference/node/configuration
|
|
|
|
# calico_ip_auto_method: "interface=eth.*"
|
2022-02-15 01:26:14 +00:00
|
|
|
# calico_ip6_auto_method: "interface=eth.*"
|
|
|
|
|
2020-03-14 13:36:35 +00:00
|
|
|
# Choose the iptables insert mode for Calico: "Insert" or "Append".
|
|
|
|
# calico_felix_chaininsertmode: Insert
|
2020-08-27 09:07:01 +00:00
|
|
|
|
|
|
|
# If you want use the default route interface when you use multiple interface with dynamique route (iproute2)
|
|
|
|
# see https://docs.projectcalico.org/reference/node/configuration : FELIX_DEVICEROUTESOURCEADDRESS
|
|
|
|
# calico_use_default_route_src_ipaddr: false
|
2021-06-25 10:22:45 +00:00
|
|
|
|
|
|
|
# Enable calico traffic encryption with wireguard
|
|
|
|
# calico_wireguard_enabled: false
|
2021-09-17 23:08:07 +00:00
|
|
|
|
|
|
|
# Under certain situations liveness and readiness probes may need tunning
|
|
|
|
# calico_node_livenessprobe_timeout: 10
|
|
|
|
# calico_node_readinessprobe_timeout: 10
|
2022-04-08 07:02:42 +00:00
|
|
|
|
|
|
|
# Calico apiserver (only with kdd)
|
|
|
|
# calico_apiserver_enabled: false
|