Files
deprecated-helm-charts/stable/datadog/templates/container-process-agent.yaml
T
Xavier Lucas 76ff3a8586 Run agents in dedicated containers in Datadog chart (#13088)
* Run agents in dedicated containers

Signed-off-by: Xavier Lucas <xavier.lucas@datadoghq.com>

* Remove network tracer

Signed-off-by: Xavier Lucas <xavier.lucas@datadoghq.com>

* Lint

Signed-off-by: Xavier Lucas <xavier.lucas@datadoghq.com>

* Review fixes

Signed-off-by: Xavier Lucas <xavier.lucas@datadoghq.com>

* Suggested changes

Signed-off-by: Xavier Lucas <xavier.lucas@datadoghq.com>

* Propagate newest daemonset features

Signed-off-by: Xavier Lucas <xavier.lucas@datadoghq.com>

* Bump chart version

Signed-off-by: Xavier Lucas <xavier.lucas@datadoghq.com>

* Proper default resources

Signed-off-by: Xavier Lucas <xavier.lucas@datadoghq.com>

* Typo fix

Signed-off-by: Xavier Lucas <xavier.lucas@datadoghq.com>

* Suggested change

Signed-off-by: Xavier Lucas <xavier.lucas@datadoghq.com>
2019-06-17 08:38:13 -07:00

34 lines
1.2 KiB
YAML

{{- define "container-process-agent" -}}
- name: process-agent
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
command: ["process-agent", "-config=/etc/datadog-agent/datadog.yaml"]
resources:
{{ toYaml .Values.daemonset.containers.processAgent.resources | indent 4 }}
env:
{{- include "containers-common-env" . | nindent 4 }}
- name: DD_PROCESS_AGENT_ENABLED
value: {{ .Values.datadog.processAgentEnabled | quote }}
- name: DD_LOG_LEVEL
value: {{ .Values.daemonset.containers.processAgent.logLevel | default .Values.datadog.logLevel | quote }}
{{- if .Values.daemonset.containers.processAgent.env }}
{{ toYaml .Values.daemonset.containers.processAgent.env | indent 4 }}
{{- end }}
volumeMounts:
- name: cgroups
mountPath: /host/sys/fs/cgroup
readOnly: true
- name: config
mountPath: /etc/datadog-agent
- name: passwd
mountPath: /etc/passwd
- name: procdir
mountPath: /host/proc
readOnly: true
{{- if .Values.datadog.useCriSocketVolume }}
- name: runtimesocket
mountPath: {{ default "/var/run/docker.sock" .Values.datadog.criSocketPath | quote }}
readOnly: true
{{- end }}
{{- end -}}