File tree Expand file tree Collapse file tree 3 files changed +31
-0
lines changed
roles/network_plugin/cilium Expand file tree Collapse file tree 3 files changed +31
-0
lines changed Original file line number Diff line number Diff line change @@ -348,3 +348,5 @@ cilium_certgen_args:
348
348
cilium_clusterrole_rules_operator_extra_vars : []
349
349
cilium_enable_host_firewall : false
350
350
cilium_policy_audit_mode : false
351
+
352
+ # hubble_flowlogs_config: {}
Original file line number Diff line number Diff line change @@ -281,6 +281,11 @@ data:
281
281
enable-bgp-control-plane: "{{ cilium_enable_bgp_control_plane }}"
282
282
283
283
disable-cnp-status-updates: "{{ cilium_disable_cnp_status_updates }}"
284
+
285
+ {% if hubble_flowlogs_config is defined %}
286
+ hubble-flowlogs-config-path: /flowlog-config/flowlogs.yaml
287
+ {% endif %}
288
+
284
289
{% if cilium_ip_masq_agent_enable %}
285
290
---
286
291
apiVersion: v1
@@ -297,3 +302,15 @@ data:
297
302
masqLinkLocal: {{ cilium_masq_link_local | bool }}
298
303
resyncInterval: "{{ cilium_ip_masq_resync_interval }}"
299
304
{% endif %}
305
+
306
+ {% if hubble_flowlogs_config is defined %}
307
+ ---
308
+ apiVersion: v1
309
+ kind: ConfigMap
310
+ metadata:
311
+ name: cilium-flowlog-config
312
+ namespace: kube-system
313
+ data:
314
+ flowlogs.yaml: |
315
+ {{ hubble_flowlogs_config | to_yaml | indent(4) }}
316
+ {% endif %}
Original file line number Diff line number Diff line change @@ -192,6 +192,13 @@ spec:
192
192
mountPath: /var/lib/cilium/tls/hubble
193
193
readOnly: true
194
194
{% endif %}
195
+
196
+ {% if hubble_flowlogs_config is defined %}
197
+ - mountPath: /flowlog-config
198
+ name: flowlog-config
199
+ readOnly: true
200
+ {% endif %}
201
+
195
202
{% for volume_mount in cilium_agent_extra_volume_mounts %}
196
203
- {{ volume_mount | to_nice_yaml(indent=2) | indent(10) }}
197
204
{% endfor %}
@@ -346,6 +353,11 @@ spec:
346
353
tolerations:
347
354
- operator: Exists
348
355
volumes:
356
+ {% if hubble_flowlogs_config is defined %}
357
+ - name: flowlog-config
358
+ configMap:
359
+ name: cilium-flowlog-config
360
+ {% endif %}
349
361
# To keep state between restarts / upgrades
350
362
- name: cilium-run
351
363
hostPath:
You can’t perform that action at this time.
0 commit comments