Add PROFILING_ENABLED environment variable and port number to tracer container (#1580)

* Add `PROFILING_ENABLED` environment variable and port number to `tracer` container

* Update `complete.yaml`

---------

Co-authored-by: Alon Girmonsky <1990761+alongir@users.noreply.github.com>
This commit is contained in:
M. Mert Yildiran 2024-08-16 22:59:26 +03:00 committed by GitHub
parent be96d4e099
commit 2a640c8d38
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 9 additions and 1 deletions

View File

@ -162,10 +162,14 @@ spec:
- /hostproc - /hostproc
{{- if ne .Values.tap.packetCapture "ebpf" }} {{- if ne .Values.tap.packetCapture "ebpf" }}
- -disable-ebpf - -disable-ebpf
{{- end }} {{- end }}
{{- if .Values.tap.debug }} {{- if .Values.tap.debug }}
- -debug - -debug
{{- end }} {{- end }}
{{- if .Values.tap.misc.profile }}
- -port
- '{{ add .Values.tap.proxy.worker.srvPort 1 }}'
{{- end }}
{{- if .Values.tap.docker.overrideTag.worker }} {{- if .Values.tap.docker.overrideTag.worker }}
image: '{{ .Values.tap.docker.registry }}/worker:{{ .Values.tap.docker.overrideTag.worker }}{{ include "kubeshark.dockerTagDebugVersion" . }}' image: '{{ .Values.tap.docker.registry }}/worker:{{ .Values.tap.docker.overrideTag.worker }}{{ include "kubeshark.dockerTagDebugVersion" . }}'
{{ else }} {{ else }}
@ -182,6 +186,8 @@ spec:
valueFrom: valueFrom:
fieldRef: fieldRef:
fieldPath: metadata.namespace fieldPath: metadata.namespace
- name: PROFILING_ENABLED
value: '{{ .Values.tap.misc.profile }}'
resources: resources:
limits: limits:
cpu: {{ .Values.tap.resources.tracer.limits.cpu }} cpu: {{ .Values.tap.resources.tracer.limits.cpu }}

View File

@ -567,6 +567,8 @@ spec:
valueFrom: valueFrom:
fieldRef: fieldRef:
fieldPath: metadata.namespace fieldPath: metadata.namespace
- name: PROFILING_ENABLED
value: 'false'
resources: resources:
limits: limits:
cpu: 750m cpu: 750m