Skip to content

Commit d98f104

Browse files
committed
Make cilium dnsProxy transparent mode configure
When Cilium is configured to replace kube-proxy, it automatically enables dnsProxy, which can conflict with nodelocaldns.
1 parent c38288a commit d98f104

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

roles/network_plugin/cilium/defaults/main.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,12 @@ cilium_monitor_aggregation: medium
5858
# Kube Proxy Replacement mode (true/false)
5959
cilium_kube_proxy_replacement: false
6060

61+
# If not defined `cilium_dns_proxy_enable_transparent_mode`, it will following the Cilium behavior.
62+
# When Cilium is configured to replace kube-proxy, it automatically enables dnsProxy, which will conflict with nodelocaldns.
63+
# You can set `false` avoid conflict with nodelocaldns.
64+
# https://github.com/cilium/cilium/issues/33144
65+
# cilium_dns_proxy_enable_transparent_mode:
66+
6167
# If upgrading from Cilium < 1.5, you may want to override some of these options
6268
# to prevent service disruptions. See also:
6369
# http://docs.cilium.io/en/stable/install/upgrade/#changes-that-may-require-action

roles/network_plugin/cilium/templates/values.yaml.j2

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ loadbalancer:
2828

2929
kubeProxyReplacement: {{ cilium_kube_proxy_replacement }}
3030

31+
{% if cilium_dns_proxy_enable_transparent_mode is defined %}
32+
dnsProxy:
33+
enableTransparentMode: {{ cilium_dns_proxy_enable_transparent_mode }}
34+
{% endif %}
35+
3136
extraVolumes:
3237
{{ cilium_agent_extra_volumes | to_nice_yaml(indent=2) | indent(2) }}
3338

0 commit comments

Comments
 (0)