f05d6b3711
Starting with Cilium v1.9 the default ipam mode has changed to "Cluster Scope". See: https://docs.cilium.io/en/v1.9/concepts/networking/ipam/ With this ipam mode Cilium handles assigning subnets to nodes to use for pod ip addresses. The default Kubespray deploy uses the Kube Controller Manager for this (the --allocate-node-cidrs kube-controller-manager flag is set). This makes the proper ipam mode for kubespray using cilium v1.9+ "kubernetes". Tested with Cilium 1.9.5. This PR also mounts the cilium-config ConfigMap for this variable to be read properly. In the future we can probably remove the kvstore and kvstore-opt Cilium Operator args since they can be in the ConfigMap. I will tackle that after this merges.
60 lines
2 KiB
YAML
60 lines
2 KiB
YAML
---
|
|
# Log-level
|
|
cilium_debug: false
|
|
|
|
cilium_mtu: ""
|
|
cilium_enable_ipv4: true
|
|
cilium_enable_ipv6: false
|
|
|
|
# Etcd SSL dirs
|
|
cilium_cert_dir: /etc/cilium/certs
|
|
kube_etcd_cacert_file: ca.pem
|
|
kube_etcd_cert_file: node-{{ inventory_hostname }}.pem
|
|
kube_etcd_key_file: node-{{ inventory_hostname }}-key.pem
|
|
|
|
# Limits for apps
|
|
cilium_memory_limit: 500M
|
|
cilium_cpu_limit: 500m
|
|
cilium_memory_requests: 64M
|
|
cilium_cpu_requests: 100m
|
|
|
|
# Overlay Network Mode
|
|
cilium_tunnel_mode: vxlan
|
|
# Optional features
|
|
cilium_enable_prometheus: false
|
|
cilium_enable_hubble_metrics: false
|
|
cilium_enable_hubble: false
|
|
cilium_hubble_metrics: ""
|
|
# Enable if you want to make use of hostPort mappings
|
|
cilium_enable_portmap: false
|
|
# Monitor aggregation level (none/low/medium/maximum)
|
|
cilium_monitor_aggregation: medium
|
|
# Kube Proxy Replacement mode (strict/probe/partial)
|
|
cilium_kube_proxy_replacement: probe
|
|
|
|
# If upgrading from Cilium < 1.5, you may want to override some of these options
|
|
# to prevent service disruptions. See also:
|
|
# http://docs.cilium.io/en/stable/install/upgrade/#changes-that-may-require-action
|
|
cilium_preallocate_bpf_maps: false
|
|
cilium_tofqdns_enable_poller: false
|
|
cilium_enable_legacy_services: false
|
|
|
|
# Deploy cilium even if kube_network_plugin is not cilium.
|
|
# This enables to deploy cilium alongside another CNI to replace kube-proxy.
|
|
cilium_deploy_additionally: false
|
|
|
|
# Auto direct nodes routes can be used to advertise pods routes in your cluster
|
|
# without any tunelling (with `cilium_tunnel_mode` sets to `disabled`).
|
|
# This works only if you have a L2 connectivity between all your nodes.
|
|
# You wil also have to specify the variable `cilium_native_routing_cidr` to
|
|
# make this work. Please refer to the cilium documentation for more
|
|
# information about this kind of setups.
|
|
cilium_auto_direct_node_routes: false
|
|
cilium_native_routing_cidr: ""
|
|
|
|
# IPsec based transparent encryption between nodes
|
|
cilium_ipsec_enabled: false
|
|
|
|
# IP address management mode for v1.9+.
|
|
# https://docs.cilium.io/en/v1.9/concepts/networking/ipam/
|
|
cilium_ipam_mode: kubernetes
|