Enable profiling in the worker when debug is enabled

This commit is contained in:
M. Mert Yildiran 2023-07-30 04:23:53 +03:00
parent 2c8f2e903f
commit 9e6af8c0bc
No known key found for this signature in database
GPG Key ID: DA5D6DCBB758A461

View File

@ -48,6 +48,15 @@ spec:
image: '{{ .Values.tap.docker.registry }}/worker:{{ .Values.tap.docker.tag }}'
imagePullPolicy: {{ .Values.tap.docker.imagepullpolicy }}
name: kubeshark-worker-daemon-set
{{- if .Values.tap.debug }}
env:
- name: PROFILING_ENABLED
value: "true"
- name: PROFILING_DUMP_PATH
value: "pprof"
- name: PROFILING_INTERVAL_SECONDS
value: "10"
{{- end }}
resources:
limits:
cpu: {{ .Values.tap.resources.worker.limits.cpu }}