• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..10-Dec-2021-

README.mdH A D10-Dec-20211.1 KiB2720

configmap.yamlH A D10-Dec-2021559 2522

deployment.yamlH A D10-Dec-20211.2 KiB5555

README.md

1# Fluent Bit running as a sidecar on Kubernetes Windows node
2
3You can test the Fluent Bit image as a sidecar on a Kubernetes Windows node as follows:
4
5```
6kubectl create namespace fluentbit
7kubectl apply -n fluentbit -f $SAMPLE_DIR\kubernetes\configmap.yaml
8kubectl apply -n fluentbit -f $SAMPLE_DIR\kubernetes\deployment.yaml
9```
10
11Ensure that the resources have been correctly deployed.
12
13```
14kubectl get pod -n fluentbit
15NAME                                             READY   STATUS    RESTARTS   AGE
16logging-fluentbit-sidecar-6ff8c84494-zt4ft       2/2     Running   0          31m
17
18kubectl get svc -n fluentbit
19NAME                                TYPE           CLUSTER-IP    EXTERNAL-IP      PORT(S)        AGE
20logging-fluentbit-sidecar           LoadBalancer   10.0.27.172   52.237.212.148   80:30172/TCP   126m
21```
22
23If you tail the logs on the Fluent Bit sidecar, and then explore the website running in the external ip and port 80, you should see generated logs ...
24
25```
26kubectl logs logging-fluentbit-sidecar-6ff8c84494-zt4ft -n fluentbit -c fluentbit-logger -f
27```