Created
March 2, 2018 19:10
-
-
Save mshutt/8928bc13fad27b80ded2d074fb98b193 to your computer and use it in GitHub Desktop.
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: extensions/v1beta1 | |
kind: DaemonSet | |
metadata: | |
name: dd-agent | |
spec: | |
template: | |
metadata: | |
labels: | |
app: dd-agent | |
name: dd-agent | |
spec: | |
serviceAccount: datadog | |
containers: | |
- image: datadog/docker-dd-agent:latest | |
imagePullPolicy: Always | |
name: dd-agent | |
ports: | |
- containerPort: 8125 | |
name: dogstatsdport | |
protocol: UDP | |
env: | |
- name: API_KEY | |
value: "[redacted]" | |
- name: DD_TAGS | |
value: "application:OpenShift,region:[redacted]" | |
- name: KUBERNETES | |
value: "yes" | |
securityContext: | |
privileged: true | |
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: etchostname | |
mountPath: /host/etc/hostname | |
readOnly: true | |
- name: datadog-config-volume | |
mountPath: /etc/dd-agent/conf.d/kubernetes.yaml | |
subPath: kubernetes.yaml | |
readOnly: true | |
# - name: datadog-config-volume | |
# mountPath: /etc/dd-agent/conf.d/kubernetes_state.yaml | |
# subPath: kubernetes_state.yaml | |
# readOnly: true | |
volumes: | |
- hostPath: | |
path: /var/run/docker.sock | |
name: dockersocket | |
- hostPath: | |
path: /proc | |
name: procdir | |
- hostPath: | |
path: /sys/fs/cgroup | |
name: cgroups | |
- hostPath: | |
path: /etc/hostname | |
name: etchostname | |
- configMap: | |
name: datadog-config | |
name: datadog-config-volume |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment