|
1 | 1 | {{- define "container-agent-data-plane" -}} |
2 | 2 | - name: agent-data-plane |
3 | | - image: "{{ include "image-path" (dict "root" .Values "image" .Values.datadog.agentDataPlane.image) }}" |
4 | | - imagePullPolicy: {{ .Values.datadog.agentDataPlane.image.pullPolicy }} |
5 | | - command: ["agent-data-plane", "run", "--config={{ template "datadog.confPath" . }}/datadog.yaml"] |
6 | | -{{ include "generate-security-context" (dict "securityContext" .Values.agents.containers.agentDataPlane.securityContext "targetSystem" .Values.targetSystem "seccomp" "" "kubeversion" .Capabilities.KubeVersion.Version) | indent 2 }} |
| 3 | + image: "{{ include "image-path" (dict "root" .Values "image" .Values.datadog.dataPlane.image) }}" |
| 4 | + imagePullPolicy: {{ .Values.datadog.dataPlane.image.pullPolicy }} |
| 5 | + command: ["agent-data-plane", "--config", "{{ template "datadog.confPath" . }}/datadog.yaml", "run"] |
7 | 6 | resources: |
8 | 7 | {{- if and (empty .Values.agents.containers.agentDataPlane.resources) .Values.providers.gke.autopilot -}} |
9 | 8 | {{ include "default-container-resources" . | indent 4 }} |
10 | 9 | {{- else }} |
11 | 10 | {{ toYaml .Values.agents.containers.agentDataPlane.resources | indent 4 }} |
12 | 11 | {{- end }} |
| 12 | +{{- if .Values.datadog.dataPlane.dogstatsd.enabled }} |
13 | 13 | ports: |
14 | 14 | - containerPort: {{ .Values.datadog.dogstatsd.port }} |
15 | 15 | {{- if .Values.datadog.dogstatsd.useHostPort }} |
16 | 16 | hostPort: {{ .Values.datadog.dogstatsd.port }} |
17 | 17 | {{- end }} |
18 | 18 | name: dogstatsdport |
19 | 19 | protocol: UDP |
20 | | - |
| 20 | +{{- end }} |
21 | 21 | {{- if .Values.agents.containers.agentDataPlane.ports }} |
22 | 22 | {{ toYaml .Values.agents.containers.agentDataPlane.ports | indent 2 }} |
23 | 23 | {{- end }} |
|
32 | 32 | {{- end }} |
33 | 33 | env: |
34 | 34 | {{- include "containers-common-env" . | nindent 4 }} |
35 | | - {{- include "containers-dogstatsd-env" . | nindent 4 }} |
36 | 35 | {{- if .Values.datadog.logLevel }} |
37 | 36 | - name: DD_LOG_LEVEL |
38 | 37 | value: {{ .Values.agents.containers.agentDataPlane.logLevel | default .Values.datadog.logLevel | quote }} |
39 | 38 | {{- end }} |
40 | | - - name: DD_API_LISTEN_ADDRESS |
| 39 | + - name: DD_DATA_PLANE_REMOTE_AGENT_ENABLED |
| 40 | + value: "true" |
| 41 | + - name: DD_DATA_PLANE_USE_NEW_CONFIG_STREAM_ENDPOINT |
| 42 | + value: "true" |
| 43 | + - name: DD_DATA_PLANE_API_LISTEN_ADDRESS |
41 | 44 | {{- $unprivilegedApiPort := .Values.agents.containers.agentDataPlane.unprivilegedApiPort }} |
42 | 45 | value: "tcp://0.0.0.0:{{ $unprivilegedApiPort }}" |
43 | | - - name: DD_SECURE_API_LISTEN_ADDRESS |
| 46 | + - name: DD_DATA_PLANE_SECURE_API_LISTEN_ADDRESS |
44 | 47 | {{- $privilegedApiPort := .Values.agents.containers.agentDataPlane.privilegedApiPort }} |
45 | 48 | value: "tcp://0.0.0.0:{{ $privilegedApiPort }}" |
46 | | - - name: DD_TELEMETRY_ENABLED |
| 49 | + - name: DD_DATA_PLANE_TELEMETRY_ENABLED |
47 | 50 | value: "true" |
48 | | - - name: DD_PROMETHEUS_LISTEN_ADDR |
| 51 | + - name: DD_DATA_PLANE_TELEMETRY_LISTEN_ADDR |
49 | 52 | {{- $telemetryApiPort := .Values.agents.containers.agentDataPlane.telemetryApiPort }} |
50 | 53 | value: "tcp://127.0.0.1:{{ $telemetryApiPort }}" |
51 | 54 | {{- include "additional-env-entries" .Values.agents.containers.agentDataPlane.env | indent 4 }} |
|
0 commit comments