Skip to content

Commit

Permalink
add cgroup mount for traffic monitoring
Browse files Browse the repository at this point in the history
  • Loading branch information
orishavit committed Feb 10, 2025
1 parent c774a00 commit e525a29
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
16 changes: 12 additions & 4 deletions network-mapper/templates/agent-daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,14 @@ spec:
- name: host-socket-containerd
mountPath: /run/cri/containerd.sock

- mountPath: /host/sys/fs/bpf
name: host-bpffs
- name: host-bpffs
mountPath: /host/sys/fs/bpf
readOnly: false

- name: host-cgroup
mountPath: /host/sys/fs/cgroup
readOnly: true

securityContext:
privileged: true

Expand All @@ -167,9 +171,9 @@ spec:
dnsPolicy: ClusterFirstWithHostNet # resolve kubernetes service names

volumes:
- hostPath:
- name: host-proc
hostPath:
path: /proc
name: host-proc
- name: component-config
configMap:
name: {{ template "otterize.mapper.componentConfigmap" . }}
Expand All @@ -182,4 +186,8 @@ spec:
- name: host-bpffs
hostPath:
path: "/sys/fs/bpf"
- name: host-cgroup
hostPath:
path: "/sys/fs/cgroup"

{{ end }}
1 change: 1 addition & 0 deletions network-mapper/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ enableIstioCollection: true
mapper:
repository: otterize
image: network-mapper
tag:
pullPolicy:
podSecurityContext:
fsGroup: 65532
Expand Down

0 comments on commit e525a29

Please sign in to comment.