How to install elk in kubernetes cluster

anup nepal:
how to install elk in kubernetes cluster

Mohamed Ayman:
You can deploy it using helm charts, check the bitnami repo or the official repo:
https://github.com/bitnami/charts/tree/master/bitnami

Mohamed Ayman:
Or you can install it using the kubernetes resources, check this article:
https://www.magalix.com/blog/kubernetes-observability-log-aggregation-using-elk-stack
Hope It helps.

anup nepal:
do i need to save statefulset yml in seperate file or in the rbac.yml which we already created above

anup nepal:
@Mohamed Ayman can you plz provide the details and step by step method for setting up the elk in cluster

Raul Butuc:
@anup nepal I have worked on the architecture of multiple production environments that hold hundreds of deployments with daily releases via CI/CD. My honest recommendation for you is to provision your ELK stack outside the K8s cluster to avoid complications. However, if you must do it inside K8s, please make sure you understand how to configure StatefulSets and how to manage your Volumes (PV, PVC, SC).

Remember that K8s was designed with stateless applications in mind (such as most microservices). For stateful applications such as MySQL, ELK, etc. you are going to need to manually configure, maintain and back-up your storage – added complexity.