# KodeKloud: Courses Learn By Doing: Deploying and Managing the EFK Stack on Kubernetes ## Learn By Doing: Deploying and Managing the EFK Stack on Kubernetes ### Introduction to EFK on Kubernetes - [Course: Learn By Doing: Deploying and Managing the EFK Stack on Kubernetes](https://notes.kodekloud.com/docs/Learn-By-Doing-Deploying-and-Managing-the-EFK-Stack-on-Kubernetes/index.md): Hands-on course teaching deployment, scaling, monitoring, and securing the Elasticsearch Fluentd Kibana stack on Kubernetes - [Course Introduction](https://notes.kodekloud.com/docs/Learn-By-Doing-Deploying-and-Managing-the-EFK-Stack-on-Kubernetes/Introduction-to-EFK-on-Kubernetes/Course-Introduction/page.md): Hands-on course teaching deployment, scaling, monitoring, and securing the Elasticsearch Fluentd Kibana stack on Kubernetes - [Why EFK on Kubernetes](https://notes.kodekloud.com/docs/Learn-By-Doing-Deploying-and-Managing-the-EFK-Stack-on-Kubernetes/Introduction-to-EFK-on-Kubernetes/Why-EFK-on-Kubernetes/page.md): Explains deploying and running the EFK logging stack on Kubernetes to collect node logs, store and index them in Elasticsearch, and search and visualize events with Kibana. - [Hands On EFK Introduction](https://notes.kodekloud.com/docs/Learn-By-Doing-Deploying-and-Managing-the-EFK-Stack-on-Kubernetes/Introduction-to-EFK-on-Kubernetes/Hands-On-EFK-Introduction/page.md): Guide to deploying and using an EFK stack on Kubernetes to collect, index, and visualize application logs from node hostPath folders across the cluster ### Deploying Elasticsearch - [Elasticsearch Problem and Solution](https://notes.kodekloud.com/docs/Learn-By-Doing-Deploying-and-Managing-the-EFK-Stack-on-Kubernetes/Deploying-Elasticsearch/Elasticsearch-Problem-and-Solution/page.md): How to run Elasticsearch on Kubernetes using StatefulSets, PersistentVolumes and Services so logs persist across pod restarts and pods retain stable network identities. - [Hands On Elasticsearch Deployment](https://notes.kodekloud.com/docs/Learn-By-Doing-Deploying-and-Managing-the-EFK-Stack-on-Kubernetes/Deploying-Elasticsearch/Hands-On-Elasticsearch-Deployment/page.md): Guide to deploying a single-node Elasticsearch on Kubernetes using PersistentVolumes a Service a StatefulSet an init container to fix permissions and verification steps ### Collecting Logs With Fluentd - [Fluentd Problem and Solution](https://notes.kodekloud.com/docs/Learn-By-Doing-Deploying-and-Managing-the-EFK-Stack-on-Kubernetes/Collecting-Logs-With-Fluentd/Fluentd-Problem-and-Solution/page.md): Explains using a Fluentd DaemonSet to collect node container logs, parse and enrich them, and forward to Elasticsearch while using host mounts and minimal RBAC. - [Hands On Fluentd Deployment](https://notes.kodekloud.com/docs/Learn-By-Doing-Deploying-and-Managing-the-EFK-Stack-on-Kubernetes/Collecting-Logs-With-Fluentd/Hands-On-Fluentd-Deployment/page.md): Guide to deploying Fluentd on Kubernetes with ServiceAccount and RBAC, configuring a DaemonSet to collect container logs and forward them to Elasticsearch. - [Test Fluentd Log Forwarding](https://notes.kodekloud.com/docs/Learn-By-Doing-Deploying-and-Managing-the-EFK-Stack-on-Kubernetes/Collecting-Logs-With-Fluentd/Test-Fluentd-Log-Forwarding/page.md): Guide to verifying Fluentd log forwarding to Elasticsearch end to end by querying ES and comparing pod logs, troubleshooting buffering and pagination, and recommending a UI like Kibana ### Visualizing Logs With Kibana - [Kibana Problem and Solution](https://notes.kodekloud.com/docs/Learn-By-Doing-Deploying-and-Managing-the-EFK-Stack-on-Kubernetes/Visualizing-Logs-With-Kibana/Kibana-Problem-and-Solution/page.md): Explains using Kibana as a web UI for querying Elasticsearch logs, creating index patterns visualizations dashboards and securely exposing the app in Kubernetes - [Hands On Kibana](https://notes.kodekloud.com/docs/Learn-By-Doing-Deploying-and-Managing-the-EFK-Stack-on-Kubernetes/Visualizing-Logs-With-Kibana/Hands-On-Kibana/page.md): Guide to deploy and expose Kibana in a Kubernetes cluster, create an index pattern, and use Kibana to explore and filter logs ### Monitoring and Alerting - [Monitoring Problem and Solution](https://notes.kodekloud.com/docs/Learn-By-Doing-Deploying-and-Managing-the-EFK-Stack-on-Kubernetes/Monitoring-and-Alerting/Monitoring-Problem-and-Solution/page.md): Explains using exporters, Prometheus, Grafana, and Alertmanager to monitor Elasticsearch and provide independent metrics and alerts so log ingestion failures are detected despite logging pipeline failures. - [Hands On Monitoring](https://notes.kodekloud.com/docs/Learn-By-Doing-Deploying-and-Managing-the-EFK-Stack-on-Kubernetes/Monitoring-and-Alerting/Hands-On-Monitoring/page.md): Demo of running Elasticsearch exporter, Prometheus, Grafana, and Alertmanager locally to collect metrics, create alerts, and route notifications through a webhook ### Scaling the EFK Stack - [Scaling Problem and Solution](https://notes.kodekloud.com/docs/Learn-By-Doing-Deploying-and-Managing-the-EFK-Stack-on-Kubernetes/Scaling-the-EFK-Stack/Scaling-Problem-and-Solution/page.md): How to scale an EFK logging stack on Kubernetes using vertical and horizontal approaches, add Fluentd collectors, reindex Elasticsearch shards, and enable HPA with Metrics Server. - [Hands On Scaling](https://notes.kodekloud.com/docs/Learn-By-Doing-Deploying-and-Managing-the-EFK-Stack-on-Kubernetes/Scaling-the-EFK-Stack/Hands-On-Scaling/page.md): Guide to troubleshooting and scaling an EFK stack by finding bottlenecks, adding capacity (shards, collectors, pod resources), verifying metrics and autoscaling, and securing Elasticsearch ### Securing the EFK Stack - [Security Problem and Solution](https://notes.kodekloud.com/docs/Learn-By-Doing-Deploying-and-Managing-the-EFK-Stack-on-Kubernetes/Securing-the-EFK-Stack/Security-Problem-and-Solution/page.md): Securing Elasticsearch and Kibana logging pipeline by enabling authentication, using NetworkPolicy, encrypting transport with TLS or mTLS, and restricting Kubernetes Secrets access with RBAC. - [Hands On Security](https://notes.kodekloud.com/docs/Learn-By-Doing-Deploying-and-Managing-the-EFK-Stack-on-Kubernetes/Securing-the-EFK-Stack/Hands-On-Security/page.md): Hands-on guide to securing an Elasticsearch, Kibana, and Fluentd EFK stack on Kubernetes using authentication, TLS, user management, network policies, and client configuration. ### Advanced EFK Configuration - [Advanced Configuration Problem and Solution](https://notes.kodekloud.com/docs/Learn-By-Doing-Deploying-and-Managing-the-EFK-Stack-on-Kubernetes/Advanced-EFK-Configuration/Advanced-Configuration-Problem-and-Solution/page.md): How to enrich logs with a custom Fluentd filter and configure Elasticsearch ILM for index rollover and deletion to preserve context and prevent disk exhaustion. - [Hands On Advanced Configuration](https://notes.kodekloud.com/docs/Learn-By-Doing-Deploying-and-Managing-the-EFK-Stack-on-Kubernetes/Advanced-EFK-Configuration/Hands-On-Advanced-Configuration/page.md): Guide to creating Fluentd filter plugins, mounting them in a DaemonSet, stamping logs, and configuring Elasticsearch ILM and index templates for automated rollover and retention.