{{- if .Values.debugHelm }} --- apiVersion: v1 kind: Pod metadata: { name: debug, namespace: "{{ .Values.namespace }}" } spec: containers: - name: debug image: nicolaka/netshoot:latest command: ["sh","-c","sleep infinity"] stdin: true tty: true securityContext: capabilities: add: ["NET_RAW","NET_ADMIN"] # for tcpdump/mtr restartPolicy: Never {{- end }}