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.

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