Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # datadog-agent.yaml
- apiVersion: apps/v1
- kind: DaemonSet
- metadata:
- name: datadog-agent
- namespace: default
- spec:
- selector:
- matchLabels:
- app: datadog-agent
- template:
- metadata:
- labels:
- app: datadog-agent
- name: datadog-agent
- spec:
- serviceAccountName: datadog-agent
- containers:
- - image: datadog/agent:latest
- imagePullPolicy: Always
- name: datadog-agent
- ports:
- - containerPort: 8125
- hostPort: 8125
- name: dogstatsdport
- protocol: UDP
- - containerPort: 8126
- hostPort: 8126
- name: traceport
- protocol: TCP
- env:
- - name: DD_API_KEY
- valueFrom:
- secretKeyRef:
- name: datadog-secret
- key: api-key
- - {name: DD_SITE, value: "datadoghq.com"}
- - {name: DD_DOGSTATSD_NON_LOCAL_TRAFFIC, value: "true" }
- - {name: KUBERNETES, value: "true"}
- - {name: DD_HEALTH_PORT, value: "5555"}
- - {name: DD_COLLECT_KUBERNETES_EVENTS, value: "true" }
- - {name: DD_PROCESS_AGENT_ENABLED, value: "true" }
- - {name: DD_LEADER_ELECTION, value: "true" }
- - {name: DD_APM_ENABLED, value: "true" }
- - {name: DD_APM_NON_LOCAL_TRAFFIC, value: "true" }
- - {name: DD_LOGS_ENABLED, value: "true" }
- - name: DD_KUBERNETES_KUBELET_HOST
- valueFrom:
- fieldRef:
- fieldPath: status.hostIP
- resources:
- requests:
- memory: "256Mi"
- cpu: "200m"
- limits:
- memory: "512Mi"
- cpu: "500m"
- volumeMounts:
- - {name: dockersocket, mountPath: /var/run/docker.sock}
- - {name: procdir, mountPath: /host/proc, readOnly: true}
- - {name: cgroups, mountPath: /host/sys/fs/cgroup, readOnly: true}
- - {name: s6-run, mountPath: /var/run/s6}
- - {name: logpodpath, mountPath: /var/log/pods}
- - {name: logcontainerpath, mountPath: /var/lib/docker/containers}
- - {name: pointdir, mountPath: /opt/datadog-agent/run}
- - {name: passwd, mountPath: /etc/passwd, readOnly: true}
- livenessProbe:
- httpGet:
- path: /health
- port: 5555
- initialDelaySeconds: 15
- periodSeconds: 15
- timeoutSeconds: 5
- successThreshold: 1
- failureThreshold: 3
- volumes:
- - {name: dockersocket, hostPath: {path: /var/run/docker.sock}}
- - {name: procdir, hostPath: {path: /proc}}
- - {name: cgroups, hostPath: {path: /sys/fs/cgroup}}
- - {name: s6-run, emptyDir: {}}
- - {name: logpodpath, hostPath: {path: /var/log/pods}}
- - {name: logcontainerpath, hostPath: {path: /var/lib/docker/containers}}
- - {name: pointdir, hostPath: {path: /opt/datadog-agent/run}}
- - {name: passwd, hostPath: {path: /etc/passwd}}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement