Last active
December 6, 2017 11:58
-
-
Save henriquechehad/16f18063562c45c879cfd9e809563cd4 to your computer and use it in GitHub Desktop.
dd-agent
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: | |
containers: | |
- image: datadog/docker-dd-agent:latest | |
imagePullPolicy: Always | |
name: dd-agent | |
ports: | |
- containerPort: 8125 | |
name: dogstatsdport | |
protocol: UDP | |
env: | |
- name: API_KEY | |
value: <<< MY API KEY >>> | |
- name: KUBERNETES | |
value: "yes" | |
- name: SD_BACKEND | |
value: docker | |
# Uncomment this variable if the agent has issues reaching kubelet | |
# - name: KUBERNETES_KUBELET_HOST | |
# valueFrom: | |
# fieldRef: | |
# fieldPath: status.hostIP # Kubernetes >= 1.7 | |
# # or | |
# # fieldPath: spec.nodeName # Kubernetes < 1.7 | |
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 | |
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment