Skip to content

Instantly share code, notes, and snippets.

@mausch
Created November 20, 2017 15:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mausch/ef0d9f1b37b733bdb06a9346713e9b66 to your computer and use it in GitHub Desktop.
Save mausch/ef0d9f1b37b733bdb06a9346713e9b66 to your computer and use it in GitHub Desktop.
{
"kind": "DaemonSet",
"apiVersion": "extensions/v1beta1",
"metadata": {
"name": "dd-agent",
"namespace": "kube-system",
"selfLink": "/apis/extensions/v1beta1/namespaces/kube-system/daemonsets/dd-agent",
"uid": "32c0241e-5edf-11e6-9c81-028433db5193",
"resourceVersion": "52398371",
"generation": 2,
"creationTimestamp": "2016-08-10T09:45:40Z",
"labels": {
"app": "dd-agent"
}
},
"spec": {
"selector": {
"matchLabels": {
"app": "dd-agent"
}
},
"template": {
"metadata": {
"name": "dd-agent",
"creationTimestamp": null,
"labels": {
"app": "dd-agent"
}
},
"spec": {
"volumes": [
{
"name": "dockersocket",
"hostPath": {
"path": "/var/run/docker.sock"
}
},
{
"name": "procdir",
"hostPath": {
"path": "/proc"
}
},
{
"name": "cgroups",
"hostPath": {
"path": "/sys/fs/cgroup"
}
},
{
"name": "bin",
"hostPath": {
"path": "/bin"
}
},
{
"name": "checks",
"configMap": {
"name": "dd-agent-checks",
"defaultMode": 420
}
},
{
"name": "conf",
"configMap": {
"name": "dd-agent-conf",
"defaultMode": 420
}
},
{
"name": "etc",
"hostPath": {
"path": "/etc"
}
},
{
"name": "lib",
"hostPath": {
"path": "/lib"
}
},
{
"name": "lib64",
"hostPath": {
"path": "/lib64"
}
},
{
"name": "run",
"hostPath": {
"path": "/run"
}
},
{
"name": "usr",
"hostPath": {
"path": "/usr"
}
},
{
"name": "var",
"hostPath": {
"path": "/var"
}
}
],
"containers": [
{
"name": "dd-agent",
"image": "datadog/docker-dd-agent:12.4.5181",
"ports": [
{
"name": "dogstatsdport",
"hostPort": 8125,
"containerPort": 8125,
"protocol": "UDP"
}
],
"env": [
{
"name": "API_KEY",
"valueFrom": {
"configMapKeyRef": {
"name": "dd-agent",
"key": "api.key"
}
}
},
{
"name": "DD_HOSTNAME",
"valueFrom": {
"fieldRef": {
"apiVersion": "v1",
"fieldPath": "metadata.name"
}
}
},
{
"name": "DD_LOGS_STDOUT",
"value": "yes"
},
{
"name": "KUBERNETES",
"value": "yes"
},
{
"name": "KUBERNETES_COLLECT_EVENTS",
"value": "true"
},
{
"name": "KUBERNETES_LEADER_CANDIDATE",
"value": "true"
},
{
"name": "KUBERNETES_LEADER_LEASE_DURATION",
"value": "60"
},
{
"name": "KUBERNETES_NAMESPACE_NAME_REGEX",
"value": ".+"
},
{
"name": "LOG_LEVEL",
"value": "INFO"
},
{
"name": "SD_BACKEND",
"value": "docker"
}
],
"resources": {
"limits": {
"cpu": "250m",
"memory": "512Mi"
},
"requests": {
"cpu": "100m",
"memory": "128Mi"
}
},
"volumeMounts": [
{
"name": "dockersocket",
"mountPath": "/var/run/docker.sock"
},
{
"name": "procdir",
"readOnly": true,
"mountPath": "/host/proc"
},
{
"name": "cgroups",
"readOnly": true,
"mountPath": "/host/sys/fs/cgroup"
},
{
"name": "checks",
"mountPath": "/checks.d"
},
{
"name": "conf",
"mountPath": "/conf.d"
}
],
"terminationMessagePath": "/dev/termination-log",
"imagePullPolicy": "Always"
}
],
"restartPolicy": "Always",
"terminationGracePeriodSeconds": 30,
"dnsPolicy": "ClusterFirst",
"serviceAccountName": "dd-agent",
"serviceAccount": "dd-agent",
"hostNetwork": true,
"securityContext": {}
}
}
},
"status": {
"currentNumberScheduled": 4,
"numberMisscheduled": 0,
"desiredNumberScheduled": 4,
"numberReady": 4
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment