mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-05-08 18:07:39 -02:30
Adding kube-proxy-replacement support in cilium (#6334)
Signed-off-by: Arthur Outhenin-Chalandre <arthur@cri.epita.fr>
This commit is contained in:
committed by
GitHub
parent
8425c2363b
commit
3550e3c145
@@ -27,7 +27,14 @@ kubeadm_use_hyperkube_image: False
|
||||
kube_proxy_mode: ipvs
|
||||
|
||||
## Delete kube-proxy daemonset if kube_proxy_remove set, e.g. kube_network_plugin providing proxy services
|
||||
kube_proxy_remove: "{{ (kube_network_plugin == 'kube-router') and (kube_router_run_service_proxy is defined and kube_router_run_service_proxy)| bool }}"
|
||||
kube_proxy_remove: >-
|
||||
{%- if kube_network_plugin == 'kube-router' -%}
|
||||
{{ (kube_router_run_service_proxy is defined and kube_router_run_service_proxy)| bool }}
|
||||
{%- elif kube_network_plugin == 'cilium' -%}
|
||||
{{ (cilium_kube_proxy_replacement is defined and cilium_kube_proxy_replacement == 'strict')| bool }}
|
||||
{%- else -%}
|
||||
false
|
||||
{%- endif -%}
|
||||
|
||||
# A string slice of values which specify the addresses to use for NodePorts.
|
||||
# Values may be valid IP blocks (e.g. 1.2.3.0/24, 1.2.3.4/32).
|
||||
|
||||
@@ -26,6 +26,8 @@ cilium_enable_prometheus: false
|
||||
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:
|
||||
|
||||
@@ -140,3 +140,5 @@ data:
|
||||
# Enable legacy services (prior v1.5) to prevent from terminating existing
|
||||
# connections with services when upgrading Cilium from < v1.5 to v1.5.
|
||||
enable-legacy-services: "{{cilium_enable_legacy_services}}"
|
||||
|
||||
kube-proxy-replacement: "{{ cilium_kube_proxy_replacement }}"
|
||||
|
||||
Reference in New Issue
Block a user