-
Notifications
You must be signed in to change notification settings - Fork 55
/
logdna-agent-v2.yaml
77 lines (77 loc) · 1.82 KB
/
logdna-agent-v2.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
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: logdna-agent
labels:
app: logdna-agent
spec:
selector:
matchLabels:
app: logdna-agent
template:
metadata:
labels:
app: logdna-agent
spec:
containers:
- name: logdna-agent
image: logdna/logdna-agent-v2:stable
imagePullPolicy: Always
env:
- name: LOGDNA_AGENT_KEY
valueFrom:
secretKeyRef:
name: logdna-agent-key
key: logdna-agent-key
- name: LOGDNA_PLATFORM
value: k8s
- name: LOGDNA_TAGS
value: agent-v2
resources:
requests:
cpu: 20m
limits:
memory: 300Mi
volumeMounts:
- name: varlog
mountPath: /var/log
- name: vardata
mountPath: /var/data
- name: varlibdockercontainers
mountPath: /var/lib/docker/containers
readOnly: true
- name: mnt
mountPath: /mnt
readOnly: true
- name: docker
mountPath: /var/run/docker.sock
- name: osrelease
mountPath: /etc/os-release
- name: logdnahostname
mountPath: /etc/logdna-hostname
volumes:
- name: varlog
hostPath:
path: /var/log
- name: vardata
hostPath:
path: /var/data
- name: varlibdockercontainers
hostPath:
path: /var/lib/docker/containers
- name: mnt
hostPath:
path: /mnt
- name: docker
hostPath:
path: /var/run/docker.sock
- name: osrelease
hostPath:
path: /etc/os-release
- name: logdnahostname
hostPath:
path: /etc/hostname
updateStrategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 100%