File tree 1 file changed +20
-4
lines changed
1 file changed +20
-4
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ apiVersion: apps/v1
2
2
kind : DaemonSet
3
3
metadata :
4
4
name : logdaemonset
5
+ namespace : logging # Specify the namespace
5
6
labels :
6
7
app : fluentd-logging
7
8
spec :
14
15
name : fluentd-elasticsearch
15
16
spec :
16
17
tolerations :
17
- # this toleration is to have the daemonset runnable on master nodes
18
- # remove it if your masters can't run pods
19
- - key : node-role.kubernetes.io/master
18
+ # Allow the DaemonSet to run on control-plane nodes
19
+ - key : node-role.kubernetes.io/control-plane
20
20
effect : NoSchedule
21
21
containers :
22
22
- name : fluentd-elasticsearch
@@ -33,11 +33,27 @@ spec:
33
33
- name : varlibdockercontainers
34
34
mountPath : /var/lib/docker/containers
35
35
readOnly : true
36
+ securityContext :
37
+ readOnlyRootFilesystem : true
38
+ runAsNonRoot : true
39
+ runAsUser : 1000
40
+ livenessProbe :
41
+ httpGet :
42
+ path : /
43
+ port : 80
44
+ initialDelaySeconds : 10
45
+ periodSeconds : 10
46
+ readinessProbe :
47
+ httpGet :
48
+ path : /
49
+ port : 80
50
+ initialDelaySeconds : 5
51
+ periodSeconds : 5
36
52
terminationGracePeriodSeconds : 30
37
53
volumes :
38
54
- name : varlog
39
55
hostPath :
40
56
path : /var/log
41
57
- name : varlibdockercontainers
42
58
hostPath :
43
- path : /var/lib/docker/containers
59
+ path : /var/lib/docker/containers
You can’t perform that action at this time.
0 commit comments