You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

176 lines
5.5 KiB

6 years ago
  1. ---
  2. # the default value of name
  3. calico_cni_name: k8s-pod-network
  4. # Enables Internet connectivity from containers
  5. nat_outgoing: true
  6. nat_outgoing_ipv6: false
  7. # add default ippool name
  8. calico_pool_name: "default-pool"
  9. calico_ipv4pool_ipip: "Off"
  10. # Change encapsulation mode, by default we enable vxlan which is the most mature and well tested mode
  11. calico_ipip_mode: Never # valid values are 'Always', 'Never' and 'CrossSubnet'
  12. calico_vxlan_mode: Always # valid values are 'Always', 'Never' and 'CrossSubnet'
  13. calico_cni_pool: true
  14. calico_cni_pool_ipv6: true
  15. # add default ippool blockSize
  16. calico_pool_blocksize: 26
  17. # Calico doesn't support ipip tunneling for the IPv6.
  18. calico_ipip_mode_ipv6: Never
  19. calico_vxlan_mode_ipv6: Never
  20. # add default ipv6 ippool blockSize
  21. calico_pool_blocksize_ipv6: 122
  22. # Calico network backend can be 'bird', 'vxlan' and 'none'
  23. calico_network_backend: vxlan
  24. calico_cert_dir: /etc/calico/certs
  25. # Global as_num (/calico/bgp/v1/global/as_num)
  26. global_as_num: "64512"
  27. # You can set MTU value here. If left undefined or empty, it will
  28. # not be specified in calico CNI config, so Calico will use built-in
  29. # defaults. The value should be a number, not a string.
  30. # calico_mtu: 1500
  31. # Advertise Service External IPs
  32. calico_advertise_service_external_ips: []
  33. # Advertise Service LoadBalancer IPs
  34. calico_advertise_service_loadbalancer_ips: []
  35. # Calico eBPF support
  36. calico_bpf_enabled: false
  37. calico_bpf_log_level: ""
  38. # Valid option for service mode: Tunnel (default), DSR=Direct Server Return
  39. calico_bpf_service_mode: Tunnel
  40. # Calico floatingIPs support
  41. # Valid option for floatingIPs: Disabled (default), Enabled
  42. calico_felix_floating_ips: Disabled
  43. # Limits for apps
  44. calico_node_memory_limit: 500M
  45. calico_node_cpu_limit: 300m
  46. calico_node_memory_requests: 64M
  47. calico_node_cpu_requests: 150m
  48. calico_felix_chaininsertmode: Insert
  49. # Calico daemonset nodeselector
  50. calico_ds_nodeselector: "kubernetes.io/os: linux"
  51. # Virtual network ID to use for VXLAN traffic. A value of 0 means “use the kernel default”.
  52. calico_vxlan_vni: 4096
  53. # Port to use for VXLAN traffic. A value of 0 means “use the kernel default”.
  54. calico_vxlan_port: 4789
  55. # Enable Prometheus Metrics endpoint for felix
  56. calico_felix_prometheusmetricsenabled: false
  57. calico_felix_prometheusmetricsport: 9091
  58. calico_felix_prometheusgometricsenabled: true
  59. calico_felix_prometheusprocessmetricsenabled: true
  60. # Set the agent log level. Can be debug, warning, info or fatal
  61. calico_loglevel: info
  62. calico_node_startup_loglevel: error
  63. # Set log path for calico CNI plugin. Set to false to disable logging to disk.
  64. calico_cni_log_file_path: /var/log/calico/cni/cni.log
  65. # Enable or disable usage report to 'usage.projectcalico.org'
  66. calico_usage_reporting: false
  67. # Should calico ignore kernel's RPF check setting,
  68. # see https://github.com/projectcalico/felix/blob/ab8799eaea66627e5db7717e62fca61fd9c08646/python/calico/felix/config.py#L198
  69. calico_node_ignorelooserpf: false
  70. # Define address on which Felix will respond to health requests
  71. calico_healthhost: "localhost"
  72. # Configure time in seconds that calico will wait for the iptables lock
  73. calico_iptables_lock_timeout_secs: 10
  74. # Choose Calico iptables backend: "Legacy", "Auto" or "NFT" (FELIX_IPTABLESBACKEND)
  75. calico_iptables_backend: "Auto"
  76. # Calico Wireguard support
  77. calico_wireguard_enabled: false
  78. calico_wireguard_packages: []
  79. calico_wireguard_repo: https://download.copr.fedorainfracloud.org/results/jdoss/wireguard/epel-{{ ansible_distribution_major_version }}-$basearch/
  80. # If you want to use non default IP_AUTODETECTION_METHOD, IP6_AUTODETECTION_METHOD for calico node set this option to one of:
  81. # * can-reach=DESTINATION
  82. # * interface=INTERFACE-REGEX
  83. # see https://projectcalico.docs.tigera.io/reference/node/configuration#ip-autodetection-methods
  84. # calico_ip_auto_method: "interface=eth.*"
  85. # calico_ip6_auto_method: "interface=eth.*"
  86. # Set FELIX_MTUIFACEPATTERN, Pattern used to discover the host’s interface for MTU auto-detection.
  87. # see https://projectcalico.docs.tigera.io/reference/felix/configuration
  88. # calico_felix_mtu_iface_pattern: "^((en|wl|ww|sl|ib)[opsx].*|(eth|wlan|wwan).*)"
  89. calico_baremetal_nodename: "{{ kube_override_hostname | default(inventory_hostname) }}"
  90. kube_etcd_cacert_file: ca.pem
  91. kube_etcd_cert_file: node-{{ inventory_hostname }}.pem
  92. kube_etcd_key_file: node-{{ inventory_hostname }}-key.pem
  93. # Choose data store type for calico: "etcd" or "kdd" (kubernetes datastore)
  94. # The default value for calico_datastore is set in role kubespray-default
  95. # Use typha (only with kdd)
  96. typha_enabled: false
  97. typha_prometheusmetricsenabled: false
  98. typha_prometheusmetricsport: 9093
  99. # Scaling typha: 1 replica per 100 nodes is adequate
  100. # Number of typha replicas
  101. typha_replicas: 1
  102. # Set max typha connections
  103. typha_max_connections_lower_limit: 300
  104. # Generate certifcates for typha<->calico-node communication
  105. typha_secure: false
  106. calico_feature_control: {}
  107. # Calico default BGP port
  108. calico_bgp_listen_port: 179
  109. # Calico FelixConfiguration options
  110. calico_felix_reporting_interval: 0s
  111. calico_felix_log_severity_screen: Info
  112. # Calico container settings
  113. calico_allow_ip_forwarding: false
  114. # Calico IPAM strictAffinity
  115. calico_ipam_strictaffinity: false
  116. # Calico IPAM autoAllocateBlocks
  117. calico_ipam_autoallocateblocks: true
  118. # Calico IPAM maxBlocksPerHost, default 0
  119. calico_ipam_maxblocksperhost: 0
  120. # Calico host local IPAM (use node .spec.podCIDR)
  121. calico_ipam_host_local: false
  122. # Calico apiserver (only with kdd)
  123. calico_apiserver_enabled: false
  124. # Calico feature detect override
  125. calico_feature_detect_override: ""
  126. # Calico kubeconfig wait timeout in seconds
  127. calico_kubeconfig_wait_timeout: 300