🔨 Fix the issues in worker DaemonSet

This commit is contained in:
M. Mert Yildiran
2023-10-04 06:34:34 +03:00
parent a7905bc1ba
commit 23e2493890

View File

@@ -99,10 +99,8 @@ spec:
- mountPath: /sys - mountPath: /sys
name: sys name: sys
readOnly: true readOnly: true
{{- if .Values.tap.persistentstorage }}
- mountPath: /app/data - mountPath: /app/data
name: kubeshark-persistent-volume name: data
{{- end }}
{{- if .Values.tap.tls }} {{- if .Values.tap.tls }}
- command: - command:
- ./tracer - ./tracer
@@ -124,13 +122,6 @@ spec:
envFrom: envFrom:
- secretRef: - secretRef:
name: kubeshark-secret name: kubeshark-secret
resources:
limits:
cpu: {{ .Values.tap.resources.worker.limits.cpu }}
memory: {{ .Values.tap.resources.worker.limits.memory }}
requests:
cpu: {{ .Values.tap.resources.worker.requests.cpu }}
memory: {{ .Values.tap.resources.worker.requests.memory }}
securityContext: securityContext:
capabilities: capabilities:
add: add:
@@ -147,10 +138,8 @@ spec:
- mountPath: /sys - mountPath: /sys
name: sys name: sys
readOnly: true readOnly: true
{{- if .Values.tap.persistentstorage }}
- mountPath: /app/data - mountPath: /app/data
name: kubeshark-persistent-volume name: data
{{- end }}
{{- end }} {{- end }}
dnsPolicy: ClusterFirstWithHostNet dnsPolicy: ClusterFirstWithHostNet
hostNetwork: true hostNetwork: true
@@ -177,8 +166,8 @@ spec:
- hostPath: - hostPath:
path: /sys path: /sys
name: sys name: sys
- name: data
{{- if .Values.tap.persistentstorage }} {{- if .Values.tap.persistentstorage }}
- name: kubeshark-persistent-volume
persistentVolumeClaim: persistentVolumeClaim:
claimName: kubeshark-persistent-volume-claim claimName: kubeshark-persistent-volume-claim
{{- else }} {{- else }}