Skip to content
This repository was archived by the owner on Sep 22, 2024. It is now read-only.

Commit 55bea2e

Browse files
authored
Use daemonset for fluentbit (#58)
* Updating fluent bit to use daemonset * Minor updates
1 parent ca10c24 commit 55bea2e

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ Cory Wilkerson, Senior Director of Engineering at GitHub, recorded a podcast whe
8181
kube-system local-path-provisioner-5ff76fc89d-wfpjx 1/1 Running 0 48s
8282
kube-system coredns-7448499f4d-dnjzl 1/1 Running 0 48s
8383
kube-system metrics-server-86cbb8457f-qlp8v 1/1 Running 0 48s
84-
logging fluentbit-f6c6d757b-mjh7r 1/1 Running 0 32s
84+
logging fluentbit-cq45s 1/1 Running 0 32s
8585
kube-system helm-install-traefik-crd-zk5gr 0/1 Completed 0 48s
8686
kube-system helm-install-traefik-mbr2l 0/1 Completed 1 48s
8787
heartbeat heartbeat-65978f8f88-dw9fn 1/1 Running 0 32s

deploy/bootstrap/fluentbit/deployment.yaml renamed to deploy/bootstrap/fluentbit/daemonset.yaml

+12-3
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
apiVersion: apps/v1
2-
kind: Deployment
2+
kind: DaemonSet
33
metadata:
44
name: fluentbit
55
namespace: logging
66
labels:
77
app.kubernetes.io/name: fluentbit
88

99
spec:
10-
replicas: 1
1110
selector:
1211
matchLabels:
1312
app.kubernetes.io/name: fluentbit
@@ -28,11 +27,21 @@ spec:
2827
image: fluent/fluent-bit:1.9
2928
imagePullPolicy: Always
3029
ports:
31-
- containerPort: 2020
30+
- name: http
31+
containerPort: 2020
32+
protocol: TCP
3233
resources:
3334
limits:
3435
cpu: 200m
3536
memory: 256Mi
37+
livenessProbe:
38+
httpGet:
39+
path: /
40+
port: http
41+
readinessProbe:
42+
httpGet:
43+
path: /api/v1/health
44+
port: http
3645
env:
3746
# - name: WorkspaceId
3847
# valueFrom:

0 commit comments

Comments
 (0)