Created
June 25, 2017 19:10
-
-
Save ShakataGaNai/7866c7d16b80ceab07c7848c29392055 to your computer and use it in GitHub Desktop.
Sample Datadog agent for Kubernetes 1.6+ using Taints and Tolerances
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: | |
tolerations: | |
- key: node-role.kubernetes.io/master | |
effect: NoSchedule | |
containers: | |
- image: datadog/docker-dd-agent:latest | |
imagePullPolicy: Always | |
name: dd-agent | |
ports: | |
- containerPort: 8125 | |
name: dogstatsdport | |
protocol: UDP | |
env: | |
- name: API_KEY | |
value: AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAaaaaaaaaa | |
- name: KUBERNETES | |
value: "yes" | |
- name: SD_BACKEND | |
value: docker | |
resources: | |
requests: | |
memory: "128Mi" | |
cpu: "100m" | |
limits: | |
memory: "512Mi" | |
cpu: "250m" | |
volumeMounts: | |
- name: dockersocket | |
mountPath: /var/run/docker.sock | |
- name: procdir | |
mountPath: /host/proc | |
readOnly: true | |
- name: cgroups | |
mountPath: /host/sys/fs/cgroup | |
readOnly: true | |
volumes: | |
- hostPath: | |
path: /var/run/docker.sock | |
name: dockersocket | |
- hostPath: | |
path: /proc | |
name: procdir | |
- hostPath: | |
path: /sys/fs/cgroup | |
name: cgroups |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment