-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathagent_daemon.yaml
111 lines (111 loc) · 2.94 KB
/
agent_daemon.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
name: datadog-agent
spec:
template:
metadata:
labels:
app: datadog-agent
name: datadog-agent
spec:
containers:
- image: datadog/agent:latest
imagePullPolicy: Always
name: datadog-agent
ports:
- containerPort: 8125
hostPort: 8125
name: dogstatsdport
protocol: UDP
- containerPort: 8126
hostPort: 8126
name: traceport
protocol: TCP
env:
- name: DD_APM_ENABLED
value: "true"
- name: DD_API_KEY
value: XXX
- name: KUBERNETES
value: "yes"
- name: DD_COLLECT_KUBERNETES_EVENTS
value: "true"
- name: DD_KUBERNETES_KUBELET_HOST
valueFrom:
fieldRef:
fieldPath: status.hostIP
- name: DD_PROCESS_AGENT_ENABLED
value: "true"
- name: DD_LEADER_ELECTION
value: "true"
- name: DD_TAGS
value: "owner:ziquan"
- name: DD_LOGS_ENABLED
value: "true"
- name: DD_LOGS_CONFIG_CONTAINER_COLLECT_ALL
value: "true"
- name: NON_LOCAL_TRAFFIC
value: "true"
# - name: DD_PROXY_HOST
# value: 1.2.34
# - name: DD_PROXY_PORT
# value: 8080
resources:
requests:
memory: "256Mi"
cpu: "200m"
limits:
memory: "256Mi"
cpu: "200m"
volumeMounts:
#docker
- name: dockersocket
mountPath: /var/run/docker.sock
- name: procdir
mountPath: /host/proc
readOnly: true
- name: cgroups
mountPath: /host/sys/fs/cgroup
readOnly: true
#live process monitoring
- name: passwd
mountPath: /etc/passwd
readOnly: true
#logs
- name: pointerdir
mountPath: /opt/datadog-agent/run
#custom log paths
- name: flasklogs
mountPath: /var/log
- name: vol-datadog-confd
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
- hostPath:
path: /etc/passwd
name: passwd
- hostPath:
path: /opt/datadog-agent/run
name: pointerdir
#logs
- hostPath:
path: /var/log/
name: flasklogs
- name: vol-datadog-confd
configMap:
name: cm-datadog-confd