Created
August 19, 2019 16:20
-
-
Save HighwayofLife/75951a939a0c9088df79038340339bd4 to your computer and use it in GitHub Desktop.
datadog/daemonset.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: apps/v1 | |
kind: DaemonSet | |
metadata: | |
name: datadog-agent | |
namespace: datadog-monitor | |
spec: | |
selector: | |
matchLabels: | |
app: datadog-agent | |
updateStrategy: | |
type: RollingUpdate | |
template: | |
metadata: | |
labels: | |
app: datadog-agent | |
name: datadog-agent | |
spec: | |
tolerations: | |
- key: "node-role.kubernetes.io/controlplane" | |
effect: "NoSchedule" | |
operator: "Equal" | |
value: "true" | |
- key: "node-role.kubernetes.io/controlplane" | |
effect: "NoExecute" | |
operator: "Equal" | |
value: "true" | |
- key: "node-role.kubernetes.io/etcd" | |
effect: "NoExecute" | |
operator: "Equal" | |
value: "true" | |
serviceAccountName: datadog-agent | |
containers: | |
- image: datadog/agent:6.13.0 | |
imagePullPolicy: Always | |
name: datadog-agent | |
ports: | |
- containerPort: 8125 | |
# Custom metrics via DogStatsD - uncomment this section to enable custom metrics collection | |
# hostPort: 8125 | |
name: dogstatsdport | |
protocol: UDP | |
- containerPort: 8126 | |
# Trace Collection (APM) - uncomment this section to enable APM | |
# hostPort: 8126 | |
name: traceport | |
protocol: TCP | |
env: | |
- name: DD_API_KEY | |
valueFrom: | |
secretKeyRef: | |
name: datadog-secret | |
key: api-key | |
- name: DD_LOGS_ENABLED | |
value: "true" | |
- name: DD_LOGS_CONFIG_CONTAINER_COLLECT_ALL | |
value: "true" | |
- name: DD_COLLECT_KUBERNETES_EVENTS | |
value: "true" | |
- name: DD_LEADER_ELECTION | |
value: "true" | |
- name: KUBERNETES | |
value: "true" | |
- name: DD_KUBERNETES_KUBELET_HOST | |
valueFrom: | |
fieldRef: | |
fieldPath: status.hostIP | |
- name: DD_APM_ENABLED | |
value: "true" | |
- name: DD_TAGS | |
value: "<redacted>" | |
- name: DD_CLUSTER_NAME | |
value: "nonprod-pipeline-test" | |
resources: | |
requests: | |
memory: "256Mi" | |
cpu: "200m" | |
limits: | |
memory: "512Mi" | |
cpu: "400m" | |
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: confd-configs | |
mountPath: /conf.d | |
livenessProbe: | |
exec: | |
command: | |
- ./probe.sh | |
initialDelaySeconds: 15 | |
periodSeconds: 5 | |
volumes: | |
- hostPath: | |
path: /var/run/docker.sock | |
name: dockersocket | |
- hostPath: | |
path: /proc | |
name: procdir | |
- hostPath: | |
path: /sys/fs/cgroup | |
name: cgroups | |
- name: confd-configs | |
configMap: | |
name: dd-agent-config | |
items: | |
- key: dns-check | |
path: dns_check.yaml | |
- key: http-check | |
path: http_check.yaml |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment