-
Notifications
You must be signed in to change notification settings - Fork 269
/
daemonset.yaml
96 lines (96 loc) · 2.47 KB
/
daemonset.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
84
85
86
87
88
89
90
91
92
93
94
95
96
---
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: splunk-kubernetes-logging
namespace: default
labels:
app: splunk-kubernetes-logging
engine: fluentd
version: 1.5.4
spec:
updateStrategy:
type: RollingUpdate
selector:
matchLabels:
app: splunk-kubernetes-logging
template:
metadata:
labels:
app: splunk-kubernetes-logging
version: 1.5.4
annotations: {}
spec:
serviceAccountName: splunk-kubernetes-logging
nodeSelector:
kubernetes.io/os: linux
tolerations:
- effect: NoSchedule
key: node-role.kubernetes.io/master
containers:
- name: splunk-fluentd-k8s-logs
image: docker.io/splunk/fluentd-hec:1.3.3
imagePullPolicy: IfNotPresent
securityContext:
runAsUser: 0
privileged: false
env:
- name: K8S_NODE_NAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
- name: MY_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: MY_POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: SPLUNK_HEC_TOKEN
valueFrom:
secretKeyRef:
name: splunk-kubernetes-logging
key: splunk_hec_token
resources:
requests:
cpu: 100m
memory: 200Mi
volumeMounts:
- name: varlog
mountPath: "/var/log"
- name: varlogdest
mountPath: "/var/lib/docker/containers"
readOnly: true
- name: journallogpath
mountPath: "/run/log/journal"
readOnly: true
- name: conf-configmap
mountPath: "/fluentd/etc"
- name: secrets
mountPath: "/fluentd/etc/splunk"
readOnly: true
ports:
livenessProbe:
httpGet:
path: "/api/plugins.json"
port: 24220
initialDelaySeconds: 60
periodSeconds: 60
terminationGracePeriodSeconds: 30
volumes:
- name: varlog
hostPath:
path: "/var/log"
- name: varlogdest
hostPath:
path: "/var/lib/docker/containers"
- name: journallogpath
hostPath:
path: "/run/log/journal"
- name: conf-configmap
configMap:
name: splunk-kubernetes-logging
- name: secrets
secret:
secretName: splunk-kubernetes-logging