How To Setup Fluentd Daemonset In Kubernetes
#Prerequisites
- Kubernetes cluster
- Elasticsearch with Kibana
- Kubectl setup
#End Goal
- Creating configmap in kubernetes
- Creating fluentd daemonset in kubernetes
- Visualising kubernetes logs in kibana
#Video Tutorial
#Create Fluentd Configmap
In Kubernetes, configmap is a kubernetes object used to store configuration for some application. For example we will be using configmap here to store fluent configuration in kubernetes and will use this configmap in daemonset.
#Create Fluentd Daemonset
We want fluentd pod/container to run on every node of k8s cluster so that all application can send logs to fluentd or may be fluentd can collect and parse other application-container logs and forward to Elasticsearch. Daemonset is used for this purpose.
#Creating Configmap and Daemonset
kubectl apply -f fluentd-configmap.yml kubectl apply -f fluentd-es-ds.yml
0 comments:
Post a Comment