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

flexibility configuration of resources for cilium #11053

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
14 changes: 14 additions & 0 deletions roles/network_plugin/cilium/templates/cilium/ds.yml.j2
Expand Up @@ -121,13 +121,27 @@ spec:
exec:
command:
- /cni-uninstall.sh
{% if cilium_cpu_limit or cilium_memory_limit or cilium_cpu_requests or cilium_memory_requests %}
resources:
{% if cilium_cpu_limit or cilium_memory_limit %}
limits:
{% if cilium_cpu_limit %}
cpu: {{ cilium_cpu_limit }}
{% endif %}
{% if cilium_memory_limit %}
memory: {{ cilium_memory_limit }}
{% endif %}
{% endif %}
{% if cilium_cpu_requests or cilium_memory_requests %}
requests:
{% if cilium_cpu_requests %}
cpu: {{ cilium_cpu_requests }}
{% endif %}
{% if cilium_memory_requests %}
memory: {{ cilium_memory_requests }}
{% endif %}
{% endif %}
{% endif %}
{% if cilium_enable_prometheus or cilium_enable_hubble_metrics %}
ports:
{% endif %}
Expand Down