Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion deploy/helm/templates/obi/daemon-set.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,21 @@ spec:
image: "{{ include "common.image" (tuple . .Values.network_topology (tuple "image" "obi")) }}"
imagePullPolicy: {{ .Values.network_topology.image.pullPolicy }}
securityContext:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would make this configurable:

  1. If .Values.network_topology.privileged is set, put here privileged: true.
  2. Else if .Values.network_topology.securityContext is set, put its content here.
  3. Else put these default values here.

privileged: true
runAsUser: 0
readOnlyRootFilesystem: true
capabilities:
add:
- BPF
- PERFMON
- DAC_READ_SEARCH
- CHECKPOINT_RESTORE
- NET_RAW
- NET_ADMIN
- SYS_PTRACE
- SYS_ADMIN
- SYS_RESOURCE
drop:
- ALL
ports:
{{- if .Values.network_topology.config.prometheus_export }}
- name: metrics
Expand Down
Loading