Skip to content

Commit 196822c

Browse files
committed
wip
1 parent 5182e4d commit 196822c

File tree

3 files changed

+410
-0
lines changed

3 files changed

+410
-0
lines changed

fluentbit/chart/Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
template:
2+
helm repo add bitnami https://charts.bitnami.com/bitnami
3+
helm template --release-name example bitnami/fluent-bit --values values.yaml > out.yaml

fluentbit/chart/out.yaml

Lines changed: 314 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,314 @@
1+
---
2+
# Source: fluent-bit/templates/networkpolicy.yaml
3+
kind: NetworkPolicy
4+
apiVersion: networking.k8s.io/v1
5+
metadata:
6+
name: example-fluent-bit
7+
namespace: "default"
8+
labels:
9+
app.kubernetes.io/instance: example
10+
app.kubernetes.io/managed-by: Helm
11+
app.kubernetes.io/name: fluent-bit
12+
app.kubernetes.io/version: 4.0.3
13+
helm.sh/chart: fluent-bit-3.1.5
14+
spec:
15+
podSelector:
16+
matchLabels:
17+
app.kubernetes.io/instance: example
18+
app.kubernetes.io/name: fluent-bit
19+
policyTypes:
20+
- Ingress
21+
- Egress
22+
egress:
23+
- {}
24+
ingress:
25+
- ports:
26+
- port: 2020
27+
---
28+
# Source: fluent-bit/templates/service-account.yaml
29+
apiVersion: v1
30+
kind: ServiceAccount
31+
metadata:
32+
name: example-fluent-bit
33+
namespace: "default"
34+
labels:
35+
app.kubernetes.io/instance: example
36+
app.kubernetes.io/managed-by: Helm
37+
app.kubernetes.io/name: fluent-bit
38+
app.kubernetes.io/version: 4.0.3
39+
helm.sh/chart: fluent-bit-3.1.5
40+
app.kubernetes.io/part-of: fluent-bit
41+
automountServiceAccountToken: false
42+
---
43+
# Source: fluent-bit/templates/configmap.yaml
44+
apiVersion: v1
45+
kind: ConfigMap
46+
metadata:
47+
name: example-fluent-bit-config
48+
namespace: "default"
49+
labels:
50+
app.kubernetes.io/instance: example
51+
app.kubernetes.io/managed-by: Helm
52+
app.kubernetes.io/name: fluent-bit
53+
app.kubernetes.io/version: 4.0.3
54+
helm.sh/chart: fluent-bit-3.1.5
55+
app.kubernetes.io/part-of: fluent-bit
56+
data:
57+
custom_parsers.conf: |
58+
{}
59+
fluent-bit.conf: |
60+
[SERVICE]
61+
Flush 1
62+
Daemon Off
63+
Log_Level info
64+
Config_Watch On
65+
HTTP_Server On
66+
HTTP_Listen 0.0.0.0
67+
HTTP_Port 2020
68+
Parsers_File /opt/bitnami/fluent-bit/conf/parsers.conf
69+
Parsers_File /opt/bitnami/fluent-bit/conf/custom_parsers.conf
70+
71+
[INPUT]
72+
Name tail
73+
Path /var/log/containers/*.log
74+
Parser docker
75+
Tag kube.*
76+
Refresh_Interval 5
77+
78+
[FILTER]
79+
Name kubernetes
80+
Match kube.*
81+
Keep_Log Off
82+
K8S-Logging.Parser On
83+
K8S-Logging.Exclude On
84+
85+
[FILTER]
86+
Name modify
87+
Match kube.*
88+
Remove log
89+
90+
[OUTPUT]
91+
Name stdout
92+
Match *
93+
Format json_lines
94+
---
95+
# Source: fluent-bit/templates/clusterrole.yaml
96+
apiVersion: rbac.authorization.k8s.io/v1
97+
kind: ClusterRole
98+
metadata:
99+
name: example-fluent-bit
100+
labels:
101+
app.kubernetes.io/instance: example
102+
app.kubernetes.io/managed-by: Helm
103+
app.kubernetes.io/name: fluent-bit
104+
app.kubernetes.io/version: 4.0.3
105+
helm.sh/chart: fluent-bit-3.1.5
106+
app.kubernetes.io/part-of: fluent-bit
107+
rules:
108+
- apiGroups:
109+
- ""
110+
resources:
111+
- namespaces
112+
- pods
113+
- nodes
114+
- nodes/proxy
115+
verbs:
116+
- get
117+
- list
118+
- watch
119+
---
120+
# Source: fluent-bit/templates/clusterrolebinding.yaml
121+
apiVersion: rbac.authorization.k8s.io/v1
122+
kind: ClusterRoleBinding
123+
metadata:
124+
name: example-fluent-bit
125+
labels:
126+
app.kubernetes.io/instance: example
127+
app.kubernetes.io/managed-by: Helm
128+
app.kubernetes.io/name: fluent-bit
129+
app.kubernetes.io/version: 4.0.3
130+
helm.sh/chart: fluent-bit-3.1.5
131+
app.kubernetes.io/part-of: fluent-bit
132+
roleRef:
133+
apiGroup: rbac.authorization.k8s.io
134+
kind: ClusterRole
135+
name: example-fluent-bit
136+
subjects:
137+
- kind: ServiceAccount
138+
name: example-fluent-bit
139+
namespace: "default"
140+
---
141+
# Source: fluent-bit/templates/service.yml
142+
apiVersion: v1
143+
kind: Service
144+
metadata:
145+
name: example-fluent-bit
146+
namespace: "default"
147+
labels:
148+
app.kubernetes.io/instance: example
149+
app.kubernetes.io/managed-by: Helm
150+
app.kubernetes.io/name: fluent-bit
151+
app.kubernetes.io/version: 4.0.3
152+
helm.sh/chart: fluent-bit-3.1.5
153+
app.kubernetes.io/part-of: fluent-bit
154+
spec:
155+
type: ClusterIP
156+
sessionAffinity: None
157+
ports:
158+
- name: http
159+
port: 2020
160+
targetPort: 2020
161+
nodePort: null
162+
selector:
163+
app.kubernetes.io/instance: example
164+
app.kubernetes.io/name: fluent-bit
165+
app.kubernetes.io/part-of: fluent-bit
166+
---
167+
# Source: fluent-bit/templates/daemonset.yaml
168+
apiVersion: apps/v1
169+
kind: DaemonSet
170+
metadata:
171+
name: example-fluent-bit
172+
namespace: "default"
173+
labels:
174+
app.kubernetes.io/instance: example
175+
app.kubernetes.io/managed-by: Helm
176+
app.kubernetes.io/name: fluent-bit
177+
app.kubernetes.io/version: 4.0.3
178+
helm.sh/chart: fluent-bit-3.1.5
179+
app.kubernetes.io/part-of: fluent-bit
180+
spec:
181+
selector:
182+
matchLabels:
183+
app.kubernetes.io/instance: example
184+
app.kubernetes.io/name: fluent-bit
185+
updateStrategy:
186+
rollingUpdate: {}
187+
type: RollingUpdate
188+
template:
189+
metadata:
190+
labels:
191+
app.kubernetes.io/instance: example
192+
app.kubernetes.io/managed-by: Helm
193+
app.kubernetes.io/name: fluent-bit
194+
app.kubernetes.io/version: 4.0.3
195+
helm.sh/chart: fluent-bit-3.1.5
196+
app.kubernetes.io/part-of: fluent-bit
197+
annotations:
198+
checksum/config: f428c47521ebe7735065fdfe24283e115f91edf074b3e875b9725c7ba3dc6d4e
199+
spec:
200+
201+
serviceAccountName: example-fluent-bit
202+
securityContext:
203+
fsGroup: 0
204+
fsGroupChangePolicy: Always
205+
supplementalGroups: []
206+
sysctls: []
207+
affinity:
208+
podAffinity:
209+
210+
podAntiAffinity:
211+
preferredDuringSchedulingIgnoredDuringExecution:
212+
- podAffinityTerm:
213+
labelSelector:
214+
matchLabels:
215+
app.kubernetes.io/instance: example
216+
app.kubernetes.io/name: fluent-bit
217+
topologyKey: kubernetes.io/hostname
218+
weight: 1
219+
nodeAffinity:
220+
221+
priorityClassName: ""
222+
automountServiceAccountToken: true
223+
initContainers:
224+
containers:
225+
- name: fluent-bit
226+
image: docker.io/bitnami/fluent-bit:4.0.3-debian-12-r0
227+
imagePullPolicy: "IfNotPresent"
228+
securityContext:
229+
allowPrivilegeEscalation: false
230+
capabilities:
231+
drop:
232+
- ALL
233+
privileged: false
234+
readOnlyRootFilesystem: true
235+
runAsGroup: 1001
236+
runAsNonRoot: true
237+
runAsUser: 1001
238+
seLinuxOptions: {}
239+
seccompProfile:
240+
type: RuntimeDefault
241+
ports:
242+
- name: http
243+
containerPort: 2020
244+
env:
245+
envFrom:
246+
startupProbe:
247+
failureThreshold: 15
248+
initialDelaySeconds: 10
249+
periodSeconds: 10
250+
successThreshold: 1
251+
timeoutSeconds: 1
252+
httpGet:
253+
port: http
254+
path: /api/v1/health
255+
livenessProbe:
256+
failureThreshold: 3
257+
initialDelaySeconds: 10
258+
periodSeconds: 10
259+
successThreshold: 1
260+
timeoutSeconds: 1
261+
tcpSocket:
262+
port: http
263+
readinessProbe:
264+
failureThreshold: 15
265+
initialDelaySeconds: 10
266+
periodSeconds: 10
267+
successThreshold: 1
268+
timeoutSeconds: 1
269+
httpGet:
270+
port: http
271+
path: /api/v1/health
272+
resources:
273+
limits:
274+
cpu: 150m
275+
ephemeral-storage: 2Gi
276+
memory: 192Mi
277+
requests:
278+
cpu: 100m
279+
ephemeral-storage: 50Mi
280+
memory: 128Mi
281+
volumeMounts:
282+
- name: config
283+
mountPath: /opt/bitnami/fluent-bit/conf/fluent-bit.conf
284+
subPath: fluent-bit.conf
285+
- name: config
286+
mountPath: /opt/bitnami/fluent-bit/conf/custom_parsers.conf
287+
subPath: custom_parsers.conf
288+
- name: varlog
289+
mountPath: /var/log
290+
- name: varlibdockercontainers
291+
mountPath: /var/lib/docker/containers
292+
readOnly: true
293+
- name: etcmachineid
294+
mountPath: /etc/machine-id
295+
readOnly: true
296+
- name: empty-dir
297+
mountPath: /tmp
298+
subPath: tmp-dir
299+
volumes:
300+
- name: empty-dir
301+
emptyDir: {}
302+
- name: config
303+
configMap:
304+
name: example-fluent-bit-config
305+
- name: varlog
306+
hostPath:
307+
path: /var/log
308+
- name: varlibdockercontainers
309+
hostPath:
310+
path: /var/lib/docker/containers
311+
- name: etcmachineid
312+
hostPath:
313+
path: /etc/machine-id
314+
type: File

0 commit comments

Comments
 (0)