Skip to content

Commit

Permalink
remove bpfman
Browse files Browse the repository at this point in the history
  • Loading branch information
orishavit committed Aug 28, 2024
1 parent 5a1cde1 commit 52487bc
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 42 deletions.
47 changes: 13 additions & 34 deletions network-mapper/templates/agent-daemonset.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{{ if or .Values.sniffer.enable .Values.bpfman.enable }}
apiVersion: apps/v1
kind: DaemonSet
metadata:
Expand Down Expand Up @@ -62,13 +61,13 @@ spec:
- name: component-config
configMap:
name: {{ template "otterize.mapper.componentConfigmap" . }}
- name: ebpfman-socket
emptyDir: { }
- name: ebpf-programs
emptyDir: { }
- name: cri
- name: containerd
hostPath:
path: "/run/containerd"
path: "/run/k3s/containerd/containerd.sock"
type: Socket
- name: bpffs
hostPath:
path: "/sys/fs/bpf"

containers:
- name: node-agent
Expand All @@ -89,10 +88,13 @@ spec:
- mountPath: /host/proc
name: proc
readOnly: true
- mountPath: /run/bpfman-sock/
name: ebpfman-socket
- mountPath: /var/run/containerd
name: cri
- mountPath: /var/run/containerd/containerd.sock
name: containerd
- mountPath: /host/sys/fs/bpf
name: bpffs
readOnly: false
securityContext:
privileged: true


{{ if .Values.sniffer.enable }}
Expand Down Expand Up @@ -180,26 +182,3 @@ spec:
name: component-config
readOnly: true
{{ end }}

{{ if .Values.bpfman.enable }}
- name: ebpf-agent
image: "{{ .Values.bpfman.repository }}/{{ .Values.bpfman.image }}:{{ .Values.bpfman.tag }}"

{{ if .Values.bpfman.pullPolicy }}
imagePullPolicy: {{ .Values.bpfman.pullPolicy }}
{{ end }}

securityContext:
privileged: true
volumeMounts:
- mountPath: /host/proc
name: proc
readOnly: true
- mountPath: /run/bpfman-sock/
name: ebpfman-socket
env:
- name: RUST_LOG
value: "{{ .Values.bpfman.logLevel }}"
{{ end }}

{{ end }}
8 changes: 0 additions & 8 deletions network-mapper/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -143,14 +143,6 @@ visibilitydns:
pullSecrets:
resources: { } # see comment under mapper.resources

bpfman:
enable: true
repository: otterize
image: bpfman
tag: latest
pullPolicy:
logLevel: info

aws:
visibility:
enabled: false
Expand Down

0 comments on commit 52487bc

Please sign in to comment.