Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add options for enabling DNS based cilium network policies #11048

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 9 additions & 0 deletions inventory/sample/group_vars/k8s_cluster/k8s-net-cilium.yml
Original file line number Diff line number Diff line change
Expand Up @@ -262,3 +262,12 @@
# resourceNames:
# - toto
# cilium_clusterrole_rules_operator_extra_vars: []

# -- Enable DNS based Cilium network policy
# ref: https://docs.cilium.io/en/latest/security/policy/language/#dns-based
# cilium_enable_l7_proxy: true

# -- Configure the minimum time, in seconds, to use DNS data for toFQDNs policies.
# If the upstream DNS server returns a DNS record with a shorter TTL, Cilium overwrites the TTL with this value.
# Setting this value to zero means that Cilium will honor the TTLs returned by the upstream DNS server.
# cilium_tofqdns_min_ttl: 0
9 changes: 9 additions & 0 deletions roles/network_plugin/cilium/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -309,3 +309,12 @@ cilium_certgen_args:
# resourceNames:
# - toto
cilium_clusterrole_rules_operator_extra_vars: []

# Enable DNS based Cilium network policy
# ref: https://docs.cilium.io/en/latest/security/policy/language/#dns-based
# cilium_enable_l7_proxy: true

# Configure the minimum time, in seconds, to use DNS data for toFQDNs policies.
# If the upstream DNS server returns a DNS record with a shorter TTL, Cilium overwrites the TTL with this value.
# Setting this value to zero means that Cilium will honor the TTLs returned by the upstream DNS server.
# cilium_tofqdns_min_ttl: 0
8 changes: 8 additions & 0 deletions roles/network_plugin/cilium/templates/cilium/config.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -268,3 +268,11 @@ data:
masqLinkLocal: {{ cilium_masq_link_local | bool }}
resyncInterval: "{{ cilium_ip_masq_resync_interval }}"
{% endif %}

{% if cilium_enable_l7_proxy is defined %}
enable-l7-proxy: "{{ cilium_enable_l7_proxy }}"
{% endif %}

{% if cilium_tofqdns_min_ttl is defined %}
tofqdns-min-ttl: "{{ cilium_tofqdns_min_ttl }}"
{% endif %}