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.

125 lines
4.0 KiB

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