-
Notifications
You must be signed in to change notification settings - Fork 0
/
bluematador-agent.yaml
65 lines (65 loc) · 1.8 KB
/
bluematador-agent.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
apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
name: bluematador-agent
spec:
updateStrategy:
type: RollingUpdate
template:
metadata:
labels:
name: bluematador-agent
spec:
tolerations:
- effect: NoExecute
operator: Exists
- key: node-role.kubernetes.io/master
effect: NoSchedule
serviceAccountName: bluematador-agent
containers:
- name: bluematador-agent
image: bluematador/agent:latest
imagePullPolicy: Always
env:
- name: BLUEMATADOR_ACCOUNT
value: "<your account id>" # must be filled in
- name: BLUEMATADOR_KEY
value: "<your api key>" # must be filled in
- name: BLUEMATADOR_KUBERNETES
value: "" # must be nonempty
- name: BLUEMATADOR_DOCKER
value: "true"
- name: BLUEMATADOR_POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: BLUEMATADOR_POD_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
resources:
requests:
memory: "64Mi"
cpu: "50m"
limits:
memory: "128Mi"
cpu: "200m"
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