default namespace:
app, status Running. There is no Elasticsearch, no Fluentd, and no Kibana — just the application doing its job.
kubectl logs (same namespace). Lines stream down the terminal; each one shows a timestamp and a username — two fields you’ll commonly search by when troubleshooting.
- stdout/stderr — which is why
kubectl logscan display them. - a folder on the node — the pod in this lab mounts a directory from the node into the container using a
hostPathvolume. That node-local folder is exactly where a log collector (like Fluentd) will read from.
A
hostPath volume is node-local. If the pod is rescheduled to another node, data stored on this hostPath will not move with it. For durable, cluster-wide log storage, use a centralized collector and persistent stores rather than relying on hostPath alone.app pod right now, the local files (and the previous pod’s kubectl logs output) will be lost — kubectl logs would then show output from the new pod only.
Which tools will keep logs safe, searchable, and available across the cluster?
Quick overview of the components Bob will use and their roles:
Use a Deployment to ensure the desired number of pod replicas and to enable rolling updates and rollbacks.
fluent.conf file (not YAML), although on Kubernetes you typically store that .conf in a ConfigMap.

fluent.conf. If Elasticsearch becomes slow or temporarily unreachable, Fluentd buffers events (in memory or on disk depending on your buffer settings) and forwards them once the downstream becomes available. Buffer configuration controls whether logs are kept in memory or persisted to disk during outages.
Elasticsearch fundamentals
Elasticsearch stores each log line as a document in a schema-flexible, document-oriented datastore. That design makes indexing and querying logs efficient and flexible.



- If the
apppod is replaced right now, where would thatUSER1 logged inline end up? - Where should log data live so it is safe, searchable, and available across the cluster?
hostPath folders are collected, indexed, and made searchable cluster-wide.
Links and references
- Kubernetes Documentation
- Fluentd: https://www.fluentd.org/
- Elasticsearch: https://www.elastic.co/elasticsearch/
- Kibana: https://www.elastic.co/kibana/