add cilium_hubble_event_buffer_capacity & cilium_hubble_event_queue_size vars (#10943)

pull/11323/head
peterw 2024-06-24 04:14:56 +01:00 committed by GitHub
parent 647092b483
commit edce2b528d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 25 additions and 0 deletions

View File

@ -163,6 +163,13 @@ cilium_l2announcements: false
### Enable auto generate certs if cilium_hubble_install: true ### Enable auto generate certs if cilium_hubble_install: true
# cilium_hubble_tls_generate: false # cilium_hubble_tls_generate: false
### Tune cilium_hubble_event_buffer_capacity & cilium_hubble_event_queue_size values to avoid dropping events when hubble is under heavy load
### Capacity of Hubble events buffer. The provided value must be one less than an integer power of two and no larger than 65535
### (ie: 1, 3, ..., 2047, 4095, ..., 65535) (default 4095)
# cilium_hubble_event_buffer_capacity: 4095
### Buffer size of the channel to receive monitor events.
# cilium_hubble_event_queue_size: 50
# IP address management mode for v1.9+. # IP address management mode for v1.9+.
# https://docs.cilium.io/en/v1.9/concepts/networking/ipam/ # https://docs.cilium.io/en/v1.9/concepts/networking/ipam/
# cilium_ipam_mode: kubernetes # cilium_ipam_mode: kubernetes

View File

@ -159,6 +159,12 @@ cilium_hubble_install: false
### Enable auto generate certs if cilium_hubble_install: true ### Enable auto generate certs if cilium_hubble_install: true
cilium_hubble_tls_generate: false cilium_hubble_tls_generate: false
### Capacity of Hubble events buffer. The provided value must be one less than an integer power of two and no larger than 65535
### (ie: 1, 3, ..., 2047, 4095, ..., 65535) (default 4095)
# cilium_hubble_event_buffer_capacity: 4095
### Buffer size of the channel to receive monitor events.
# cilium_hubble_event_queue_size: 50
# The default IP address management mode is "Cluster Scope". # The default IP address management mode is "Cluster Scope".
# https://docs.cilium.io/en/stable/concepts/networking/ipam/ # https://docs.cilium.io/en/stable/concepts/networking/ipam/
cilium_ipam_mode: cluster-pool cilium_ipam_mode: cluster-pool

View File

@ -61,3 +61,9 @@
when: when:
- cilium_ipsec_enabled is defined - cilium_ipsec_enabled is defined
- cilium_ipsec_enabled - cilium_ipsec_enabled
- name: Stop if cilium_hubble_event_buffer_capacity is not a power of 2 minus 1 and is not between 1 and 65535
assert:
that: "cilium_hubble_event_buffer_capacity in [1, 3, 7, 15, 31, 63, 127, 255, 511, 1023, 2047, 4095, 8191, 16383, 32767, 65535]"
msg: "Error: cilium_hubble_event_buffer_capacity:{{ cilium_hubble_event_buffer_capacity }} is not a power of 2 minus 1 and it should be between 1 and 65535."
when: cilium_hubble_event_buffer_capacity is defined

View File

@ -192,6 +192,12 @@ data:
{% for hubble_metrics_cycle in cilium_hubble_metrics %} {% for hubble_metrics_cycle in cilium_hubble_metrics %}
{{ hubble_metrics_cycle }} {{ hubble_metrics_cycle }}
{% endfor %} {% endfor %}
{% endif %}
{% if cilium_hubble_event_buffer_capacity is defined %}
hubble-event-buffer-capacity: "{{ cilium_hubble_event_buffer_capacity }}"
{% endif %}
{% if cilium_hubble_event_queue_size is defined %}
hubble-event-queue-size: "{{ cilium_hubble_event_queue_size }}"
{% endif %} {% endif %}
hubble-listen-address: ":4244" hubble-listen-address: ":4244"
{% if cilium_enable_hubble and cilium_hubble_install %} {% if cilium_enable_hubble and cilium_hubble_install %}