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.

157 lines
6.7 KiB

  1. ---
  2. apiVersion: v1
  3. kind: ConfigMap
  4. metadata:
  5. name: cilium-config
  6. namespace: kube-system
  7. data:
  8. # This etcd-config contains the etcd endpoints of your cluster. If you use
  9. # TLS please make sure you follow the tutorial in https://cilium.link/etcd-config
  10. etcd-config: |-
  11. ---
  12. endpoints:
  13. {% for ip_addr in etcd_access_addresses.split(',') %}
  14. - {{ ip_addr }}
  15. {% endfor %}
  16. # In case you want to use TLS in etcd, uncomment the 'ca-file' line
  17. # and create a kubernetes secret by following the tutorial in
  18. # https://cilium.link/etcd-config
  19. ca-file: "{{ cilium_cert_dir }}/ca_cert.crt"
  20. # In case you want client to server authentication, uncomment the following
  21. # lines and create a kubernetes secret by following the tutorial in
  22. # https://cilium.link/etcd-config
  23. key-file: "{{ cilium_cert_dir }}/key.pem"
  24. cert-file: "{{ cilium_cert_dir }}/cert.crt"
  25. # If you want metrics enabled in all of your Cilium agents, set the port for
  26. # which the Cilium agents will have their metrics exposed.
  27. # This option deprecates the "prometheus-serve-addr" in the
  28. # "cilium-metrics-config" ConfigMap
  29. # NOTE that this will open the port on ALL nodes where Cilium pods are
  30. # scheduled.
  31. {% if cilium_enable_prometheus %}
  32. prometheus-serve-addr: ":9090"
  33. {% endif %}
  34. # If you want to run cilium in debug mode change this value to true
  35. debug: "{{ cilium_debug }}"
  36. enable-ipv4: "{{ cilium_enable_ipv4 }}"
  37. enable-ipv6: "{{ cilium_enable_ipv6 }}"
  38. # If a serious issue occurs during Cilium startup, this
  39. # invasive option may be set to true to remove all persistent
  40. # state. Endpoints will not be restored using knowledge from a
  41. # prior Cilium run, so they may receive new IP addresses upon
  42. # restart. This also triggers clean-cilium-bpf-state.
  43. clean-cilium-state: "false"
  44. # If you want to clean cilium BPF state, set this to true;
  45. # Removes all BPF maps from the filesystem. Upon restart,
  46. # endpoints are restored with the same IP addresses, however
  47. # any ongoing connections may be disrupted briefly.
  48. # Loadbalancing decisions will be reset, so any ongoing
  49. # connections via a service may be loadbalanced to a different
  50. # backend after restart.
  51. clean-cilium-bpf-state: "false"
  52. # Users who wish to specify their own custom CNI configuration file must set
  53. # custom-cni-conf to "true", otherwise Cilium may overwrite the configuration.
  54. custom-cni-conf: "false"
  55. # If you want cilium monitor to aggregate tracing for packets, set this level
  56. # to "low", "medium", or "maximum". The higher the level, the less packets
  57. # that will be seen in monitor output.
  58. monitor-aggregation: "{{ cilium_monitor_aggregation }}"
  59. # ct-global-max-entries-* specifies the maximum number of connections
  60. # supported across all endpoints, split by protocol: tcp or other. One pair
  61. # of maps uses these values for IPv4 connections, and another pair of maps
  62. # use these values for IPv6 connections.
  63. #
  64. # If these values are modified, then during the next Cilium startup the
  65. # tracking of ongoing connections may be disrupted. This may lead to brief
  66. # policy drops or a change in loadbalancing decisions for a connection.
  67. #
  68. # For users upgrading from Cilium 1.2 or earlier, to minimize disruption
  69. # during the upgrade process, comment out these options.
  70. bpf-ct-global-tcp-max: "524288"
  71. bpf-ct-global-any-max: "262144"
  72. # Pre-allocation of map entries allows per-packet latency to be reduced, at
  73. # the expense of up-front memory allocation for the entries in the maps. The
  74. # default value below will minimize memory usage in the default installation;
  75. # users who are sensitive to latency may consider setting this to "true".
  76. #
  77. # This option was introduced in Cilium 1.4. Cilium 1.3 and earlier ignore
  78. # this option and behave as though it is set to "true".
  79. #
  80. # If this value is modified, then during the next Cilium startup the restore
  81. # of existing endpoints and tracking of ongoing connections may be disrupted.
  82. # This may lead to policy drops or a change in loadbalancing decisions for a
  83. # connection for some time. Endpoints may need to be recreated to restore
  84. # connectivity.
  85. #
  86. # If this option is set to "false" during an upgrade from 1.3 or earlier to
  87. # 1.4 or later, then it may cause one-time disruptions during the upgrade.
  88. preallocate-bpf-maps: "{{cilium_preallocate_bpf_maps}}"
  89. # Regular expression matching compatible Istio sidecar istio-proxy
  90. # container image names
  91. sidecar-istio-proxy-image: "cilium/istio_proxy"
  92. # Encapsulation mode for communication between nodes
  93. # Possible values:
  94. # - disabled
  95. # - vxlan (default)
  96. # - geneve
  97. tunnel: "{{ cilium_tunnel_mode }}"
  98. # Name of the cluster. Only relevant when building a mesh of clusters.
  99. cluster-name: default
  100. # Unique ID of the cluster. Must be unique across all conneted clusters and
  101. # in the range of 1 and 255. Only relevant when building a mesh of clusters.
  102. #cluster-id: 1
  103. # DNS Polling periodically issues a DNS lookup for each `matchName` from
  104. # cilium-agent. The result is used to regenerate endpoint policy.
  105. # DNS lookups are repeated with an interval of 5 seconds, and are made for
  106. # A(IPv4) and AAAA(IPv6) addresses. Should a lookup fail, the most recent IP
  107. # data is used instead. An IP change will trigger a regeneration of the Cilium
  108. # policy for each endpoint and increment the per cilium-agent policy
  109. # repository revision.
  110. #
  111. # This option is disabled by default starting from version 1.4.x in favor
  112. # of a more powerful DNS proxy-based implementation, see [0] for details.
  113. # Enable this option if you want to use FQDN policies but do not want to use
  114. # the DNS proxy.
  115. #
  116. # To ease upgrade, users may opt to set this option to "true".
  117. # Otherwise please refer to the Upgrade Guide [1] which explains how to
  118. # prepare policy rules for upgrade.
  119. #
  120. # [0] http://docs.cilium.io/en/stable/policy/language/#dns-based
  121. # [1] http://docs.cilium.io/en/stable/install/upgrade/#changes-that-may-require-action
  122. tofqdns-enable-poller: "{{cilium_tofqdns_enable_poller}}"
  123. # wait-bpf-mount makes init container wait until bpf filesystem is mounted
  124. wait-bpf-mount: "false"
  125. # Enable legacy services (prior v1.5) to prevent from terminating existing
  126. # connections with services when upgrading Cilium from < v1.5 to v1.5.
  127. enable-legacy-services: "{{cilium_enable_legacy_services}}"
  128. kube-proxy-replacement: "{{ cilium_kube_proxy_replacement }}"
  129. native-routing-cidr: "{{ cilium_native_routing_cidr }}"
  130. auto-direct-node-routes: "{{ cilium_auto_direct_node_routes }}"
  131. # Hubble settings
  132. {% if cilium_enable_hubble %}
  133. enable-hubble: "true"
  134. hubble-metrics: "{{ cilium_hubble_metrics }}"
  135. hubble-listen-address: ":4244"
  136. {% if cilium_enable_hubble_metrics %}
  137. hubble-metrics-server: ":9091"
  138. {% endif %}
  139. {% endif %}