-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathlogger-fluentbit-daemon.yaml
More file actions
77 lines (77 loc) · 2.17 KB
/
Copy pathlogger-fluentbit-daemon.yaml
File metadata and controls
77 lines (77 loc) · 2.17 KB
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: drycc-logger-fluentbit
labels:
heritage: drycc
annotations:
component.drycc.cc/version: {{ .Values.imageTag }}
spec:
{{- if ge .Capabilities.KubeVersion.Minor "6" }}
updateStrategy:
type: RollingUpdate
{{- end }}
selector:
matchLabels:
app: drycc-logger-fluentbit
heritage: drycc
template:
metadata:
name: drycc-logger-fluentbit
labels: {{- include "common.labels.standard" . | nindent 8 }}
heritage: drycc
app: drycc-logger-fluentbit
spec:
serviceAccount: drycc-logger-fluentbit
initContainers:
- name: drycc-logger-fluentbit-init
image: {{.Values.imageRegistry}}/{{.Values.imageOrg}}/python-dev:latest
imagePullPolicy: {{.Values.imagePullPolicy}}
args:
- netcat
- -v
- -a
- $(DRYCC_REDIS_ADDRS)
env:
- name: DRYCC_REDIS_ADDRS
valueFrom:
secretKeyRef:
name: redis-creds
key: addrs
containers:
- name: drycc-logger-fluentbit
image: {{.Values.imageRegistry}}/{{.Values.imageOrg}}/fluentbit:{{.Values.imageTag}}
imagePullPolicy: {{.Values.imagePullPolicy}}
{{- if or (.Values.limitsCpu) (.Values.limitsMemory)}}
resources:
limits:
{{- if (.Values.limitsCpu) }}
cpu: {{.Values.limitsCpu}}
{{- end}}
{{- if (.Values.limitsMemory) }}
memory: {{.Values.limitsMemory}}
{{- end}}
{{- end}}
env:
- name: DRYCC_REDIS_ADDRS
valueFrom:
secretKeyRef:
name: redis-creds
key: addrs
- name: DRYCC_REDIS_PASSWORD
valueFrom:
secretKeyRef:
name: redis-creds
key: password
volumeMounts:
- name: varlog
mountPath: /var/log
- name: drycc-logger-fluentbit
mountPath: /opt/drycc/fluent-bit/templates
volumes:
- name: varlog
hostPath:
path: /var/log
- name: drycc-logger-fluentbit
configMap:
name: drycc-logger-fluentbit