2016-01-30 23:04:47 +08:00
|
|
|
|
---
|
2022-05-12 23:29:14 +08:00
|
|
|
|
# the default value of name
|
|
|
|
|
calico_cni_name: k8s-pod-network
|
|
|
|
|
|
2016-02-21 19:42:23 +08:00
|
|
|
|
# Enables Internet connectivity from containers
|
|
|
|
|
nat_outgoing: true
|
2024-02-06 15:14:22 +08:00
|
|
|
|
nat_outgoing_ipv6: false
|
2016-03-24 00:27:06 +08:00
|
|
|
|
|
2018-09-06 22:26:57 +08:00
|
|
|
|
# add default ippool name
|
2018-08-23 22:17:18 +08:00
|
|
|
|
calico_pool_name: "default-pool"
|
2018-10-12 15:09:36 +08:00
|
|
|
|
calico_ipv4pool_ipip: "Off"
|
2018-08-23 22:17:18 +08:00
|
|
|
|
|
2022-03-18 09:05:39 +08:00
|
|
|
|
# Change encapsulation mode, by default we enable vxlan which is the most mature and well tested mode
|
|
|
|
|
calico_ipip_mode: Never # valid values are 'Always', 'Never' and 'CrossSubnet'
|
|
|
|
|
calico_vxlan_mode: Always # valid values are 'Always', 'Never' and 'CrossSubnet'
|
2016-07-21 19:05:40 +08:00
|
|
|
|
|
2022-05-20 14:45:13 +08:00
|
|
|
|
calico_cni_pool: true
|
|
|
|
|
calico_cni_pool_ipv6: true
|
|
|
|
|
|
2023-12-12 21:38:36 +08:00
|
|
|
|
# add default ippool blockSize
|
2022-07-20 04:05:27 +08:00
|
|
|
|
calico_pool_blocksize: 26
|
|
|
|
|
|
2022-04-29 15:35:13 +08:00
|
|
|
|
# Calico doesn't support ipip tunneling for the IPv6.
|
2020-10-26 15:10:53 +08:00
|
|
|
|
calico_ipip_mode_ipv6: Never
|
|
|
|
|
calico_vxlan_mode_ipv6: Never
|
2022-07-20 04:05:27 +08:00
|
|
|
|
|
2023-12-12 21:38:36 +08:00
|
|
|
|
# add default ipv6 ippool blockSize
|
2022-07-20 04:05:27 +08:00
|
|
|
|
calico_pool_blocksize_ipv6: 122
|
2020-10-26 15:10:53 +08:00
|
|
|
|
|
2022-03-18 09:05:39 +08:00
|
|
|
|
# Calico network backend can be 'bird', 'vxlan' and 'none'
|
|
|
|
|
calico_network_backend: vxlan
|
|
|
|
|
|
2016-11-09 18:44:41 +08:00
|
|
|
|
calico_cert_dir: /etc/calico/certs
|
2016-11-14 15:48:28 +08:00
|
|
|
|
|
2016-12-09 00:48:54 +08:00
|
|
|
|
# Global as_num (/calico/bgp/v1/global/as_num)
|
|
|
|
|
global_as_num: "64512"
|
|
|
|
|
|
2016-11-14 15:48:28 +08: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
|
2016-12-23 22:44:44 +08:00
|
|
|
|
|
2020-11-25 21:34:39 +08:00
|
|
|
|
# Advertise Service External IPs
|
|
|
|
|
calico_advertise_service_external_ips: []
|
|
|
|
|
|
2022-09-06 09:46:54 +08:00
|
|
|
|
# Advertise Service LoadBalancer IPs
|
2021-05-12 20:22:17 +08:00
|
|
|
|
calico_advertise_service_loadbalancer_ips: []
|
|
|
|
|
|
2021-06-07 19:58:39 +08:00
|
|
|
|
# Calico eBPF support
|
|
|
|
|
calico_bpf_enabled: false
|
|
|
|
|
calico_bpf_log_level: ""
|
|
|
|
|
# Valid option for service mode: Tunnel (default), DSR=Direct Server Return
|
|
|
|
|
calico_bpf_service_mode: Tunnel
|
|
|
|
|
|
2023-01-19 07:42:34 +08:00
|
|
|
|
# Calico floatingIPs support
|
|
|
|
|
# Valid option for floatingIPs: Disabled (default), Enabled
|
|
|
|
|
calico_felix_floating_ips: Disabled
|
|
|
|
|
|
2016-12-23 22:44:44 +08:00
|
|
|
|
# Limits for apps
|
|
|
|
|
calico_node_memory_limit: 500M
|
|
|
|
|
calico_node_cpu_limit: 300m
|
2017-02-28 00:53:43 +08:00
|
|
|
|
calico_node_memory_requests: 64M
|
2016-12-23 22:44:44 +08:00
|
|
|
|
calico_node_cpu_requests: 150m
|
2020-03-14 21:36:35 +08:00
|
|
|
|
calico_felix_chaininsertmode: Insert
|
2017-08-20 19:01:09 +08:00
|
|
|
|
|
2021-05-26 04:40:43 +08:00
|
|
|
|
# Calico daemonset nodeselector
|
|
|
|
|
calico_ds_nodeselector: "kubernetes.io/os: linux"
|
|
|
|
|
|
2020-09-22 16:04:48 +08:00
|
|
|
|
# Virtual network ID to use for VXLAN traffic. A value of 0 means “use the kernel default”.
|
|
|
|
|
calico_vxlan_vni: 4096
|
|
|
|
|
|
|
|
|
|
# Port to use for VXLAN traffic. A value of 0 means “use the kernel default”.
|
|
|
|
|
calico_vxlan_port: 4789
|
|
|
|
|
|
2017-10-04 05:24:05 +08:00
|
|
|
|
# Enable Prometheus Metrics endpoint for felix
|
2019-03-30 07:07:09 +08:00
|
|
|
|
calico_felix_prometheusmetricsenabled: false
|
2017-10-04 05:24:05 +08:00
|
|
|
|
calico_felix_prometheusmetricsport: 9091
|
2019-03-30 07:07:09 +08:00
|
|
|
|
calico_felix_prometheusgometricsenabled: true
|
|
|
|
|
calico_felix_prometheusprocessmetricsenabled: true
|
2017-10-04 05:24:05 +08:00
|
|
|
|
|
2018-11-28 16:55:01 +08:00
|
|
|
|
# Set the agent log level. Can be debug, warning, info or fatal
|
|
|
|
|
calico_loglevel: info
|
2021-04-21 06:37:42 +08:00
|
|
|
|
calico_node_startup_loglevel: error
|
2018-11-28 16:55:01 +08:00
|
|
|
|
|
2022-06-08 00:22:56 +08:00
|
|
|
|
# Set log path for calico CNI plugin. Set to false to disable logging to disk.
|
|
|
|
|
calico_cni_log_file_path: /var/log/calico/cni/cni.log
|
|
|
|
|
|
2020-04-27 15:03:30 +08:00
|
|
|
|
# Enable or disable usage report to 'usage.projectcalico.org'
|
|
|
|
|
calico_usage_reporting: false
|
|
|
|
|
|
2017-08-20 19:01:09 +08:00
|
|
|
|
# Should calico ignore kernel's RPF check setting,
|
|
|
|
|
# see https://github.com/projectcalico/felix/blob/ab8799eaea66627e5db7717e62fca61fd9c08646/python/calico/felix/config.py#L198
|
|
|
|
|
calico_node_ignorelooserpf: false
|
2017-09-04 16:29:51 +08:00
|
|
|
|
|
2018-09-18 20:48:29 +08:00
|
|
|
|
# Define address on which Felix will respond to health requests
|
|
|
|
|
calico_healthhost: "localhost"
|
|
|
|
|
|
2020-02-19 18:28:25 +08:00
|
|
|
|
# Configure time in seconds that calico will wait for the iptables lock
|
|
|
|
|
calico_iptables_lock_timeout_secs: 10
|
|
|
|
|
|
2020-04-27 15:03:39 +08:00
|
|
|
|
# Choose Calico iptables backend: "Legacy", "Auto" or "NFT" (FELIX_IPTABLESBACKEND)
|
2022-01-24 15:47:57 +08:00
|
|
|
|
calico_iptables_backend: "Auto"
|
2020-01-08 18:27:40 +08:00
|
|
|
|
|
2021-06-25 18:22:45 +08:00
|
|
|
|
# Calico Wireguard support
|
|
|
|
|
calico_wireguard_enabled: false
|
|
|
|
|
calico_wireguard_packages: []
|
|
|
|
|
calico_wireguard_repo: https://download.copr.fedorainfracloud.org/results/jdoss/wireguard/epel-{{ ansible_distribution_major_version }}-$basearch/
|
|
|
|
|
|
2022-02-15 09:26:14 +08:00
|
|
|
|
# If you want to use non default IP_AUTODETECTION_METHOD, IP6_AUTODETECTION_METHOD for calico node set this option to one of:
|
2018-03-24 06:54:17 +08:00
|
|
|
|
# * can-reach=DESTINATION
|
|
|
|
|
# * interface=INTERFACE-REGEX
|
2022-02-15 09:26:14 +08:00
|
|
|
|
# see https://projectcalico.docs.tigera.io/reference/node/configuration#ip-autodetection-methods
|
2018-03-28 22:30:00 +08:00
|
|
|
|
# calico_ip_auto_method: "interface=eth.*"
|
2022-02-15 09:26:14 +08:00
|
|
|
|
# calico_ip6_auto_method: "interface=eth.*"
|
2018-05-14 20:13:51 +08:00
|
|
|
|
|
2022-09-27 12:57:45 +08:00
|
|
|
|
# Set FELIX_MTUIFACEPATTERN, Pattern used to discover the host’s interface for MTU auto-detection.
|
|
|
|
|
# see https://projectcalico.docs.tigera.io/reference/felix/configuration
|
|
|
|
|
# calico_felix_mtu_iface_pattern: "^((en|wl|ww|sl|ib)[opsx].*|(eth|wlan|wwan).*)"
|
|
|
|
|
|
2019-02-14 08:02:48 +08:00
|
|
|
|
calico_baremetal_nodename: "{{ kube_override_hostname | default(inventory_hostname) }}"
|
2018-08-23 22:17:18 +08:00
|
|
|
|
|
2019-04-19 21:01:54 +08:00
|
|
|
|
kube_etcd_cacert_file: ca.pem
|
|
|
|
|
kube_etcd_cert_file: node-{{ inventory_hostname }}.pem
|
|
|
|
|
kube_etcd_key_file: node-{{ inventory_hostname }}-key.pem
|
2019-04-25 20:00:48 +08:00
|
|
|
|
|
|
|
|
|
# Choose data store type for calico: "etcd" or "kdd" (kubernetes datastore)
|
2020-09-23 23:38:09 +08:00
|
|
|
|
# The default value for calico_datastore is set in role kubespray-default
|
2019-10-17 20:58:38 +08:00
|
|
|
|
|
2019-04-25 20:00:48 +08:00
|
|
|
|
# Use typha (only with kdd)
|
|
|
|
|
typha_enabled: false
|
2021-06-07 19:58:39 +08:00
|
|
|
|
typha_prometheusmetricsenabled: false
|
|
|
|
|
typha_prometheusmetricsport: 9093
|
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
|
2019-06-17 14:14:07 +08:00
|
|
|
|
|
2020-01-10 16:24:33 +08:00
|
|
|
|
# Set max typha connections
|
|
|
|
|
typha_max_connections_lower_limit: 300
|
|
|
|
|
|
2019-10-17 22:02:38 +08:00
|
|
|
|
# Generate certifcates for typha<->calico-node communication
|
|
|
|
|
typha_secure: false
|
|
|
|
|
|
2019-06-17 14:14:07 +08:00
|
|
|
|
calico_feature_control: {}
|
2021-03-29 23:38:45 +08:00
|
|
|
|
|
|
|
|
|
# Calico default BGP port
|
|
|
|
|
calico_bgp_listen_port: 179
|
2021-06-07 19:58:39 +08:00
|
|
|
|
|
|
|
|
|
# Calico FelixConfiguration options
|
|
|
|
|
calico_felix_reporting_interval: 0s
|
|
|
|
|
calico_felix_log_severity_screen: Info
|
2021-11-13 11:06:46 +08:00
|
|
|
|
|
|
|
|
|
# Calico container settings
|
|
|
|
|
calico_allow_ip_forwarding: false
|
2022-03-08 14:58:33 +08:00
|
|
|
|
|
2022-05-20 02:13:20 +08:00
|
|
|
|
# Calico IPAM strictAffinity
|
2022-03-08 14:58:33 +08:00
|
|
|
|
calico_ipam_strictaffinity: false
|
2022-04-08 15:02:42 +08:00
|
|
|
|
|
2022-05-20 02:13:20 +08:00
|
|
|
|
# Calico IPAM autoAllocateBlocks
|
2022-07-12 00:49:48 +08:00
|
|
|
|
calico_ipam_autoallocateblocks: true
|
2022-05-20 02:13:20 +08:00
|
|
|
|
|
|
|
|
|
# Calico IPAM maxBlocksPerHost, default 0
|
|
|
|
|
calico_ipam_maxblocksperhost: 0
|
|
|
|
|
|
2023-12-12 21:38:36 +08:00
|
|
|
|
# Calico host local IPAM (use node .spec.podCIDR)
|
|
|
|
|
|
|
|
|
|
calico_ipam_host_local: false
|
|
|
|
|
|
2022-04-08 15:02:42 +08:00
|
|
|
|
# Calico apiserver (only with kdd)
|
|
|
|
|
calico_apiserver_enabled: false
|
2022-09-02 19:58:05 +08:00
|
|
|
|
|
2023-01-06 16:00:00 +08:00
|
|
|
|
# Calico feature detect override
|
2022-09-02 19:58:05 +08:00
|
|
|
|
calico_feature_detect_override: ""
|
2023-04-18 21:58:58 +08:00
|
|
|
|
|
|
|
|
|
# Calico kubeconfig wait timeout in seconds
|
|
|
|
|
calico_kubeconfig_wait_timeout: 300
|