-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeamonset.yaml
48 lines (48 loc) · 1.08 KB
/
deamonset.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
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: theykk-logger
namespace: logger
labels:
app: theykk-logger
spec:
selector:
matchLabels:
app: theykk-logger
template:
metadata:
labels:
app: theykk-logger
spec:
containers:
- name: theykk-logger
image: theykk/logger:v0.2.16
imagePullPolicy: Always
env:
- name: MONGO_URI
valueFrom:
secretKeyRef:
name: theykk-logger
key: MONGO_URI
- name: KUBE_HOSTNAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
resources:
requests:
cpu: 50m
limits:
memory: 200Mi
volumeMounts:
- name: varlog
mountPath: /var/log
- name: varlibdockercontainers
mountPath: /var/lib/docker/containers
readOnly: true
volumes:
- name: varlog
hostPath:
path: /var/log
- name: varlibdockercontainers
hostPath:
path: /var/lib/docker/containers