-
Notifications
You must be signed in to change notification settings - Fork 55
/
logdna-agent-ds-os-k8s-v1.8.yaml
83 lines (83 loc) · 2.02 KB
/
logdna-agent-ds-os-k8s-v1.8.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
apiVersion: extensions/v1beta1
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:latest
imagePullPolicy: Always
env:
- name: LOGDNA_AGENT_KEY
valueFrom:
secretKeyRef:
name: logdna-agent-key
key: logdna-agent-key
- name: LOGDNA_PLATFORM
value: k8s
- name: USEJOURNALD
value: files
# - name: LOGDNA_TAGS
# value: production,cluster1,othertags
resources:
requests:
cpu: 20m
limits:
memory: 500Mi
securityContext:
privileged: true
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
serviceAccount: logdna-agent
serviceAccountName: logdna-agent
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%