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.

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