Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kubernetes examples and documentation should store state on a host path volume #2109

Closed
cmacknz opened this issue Jan 16, 2023 · 1 comment
Closed
Labels
8.8-candidate documentation Improvements or additions to documentation Team:Elastic-Agent Label for the Agent team

Comments

@cmacknz
Copy link
Member

cmacknz commented Jan 16, 2023

All examples and documentation for deploying the Elastic agent on Kubernetes should mount the state path on a host path volume to prevent loss of persistent state like the Filebeat registry when a pod is recreated.

When the agent is run on ECK this is done by default: https://www.elastic.co/guide/en/cloud-on-k8s/current/k8s-elastic-agent-configuration-examples.html#k8s_storing_local_state_in_host_path_volume

Specifically the the directory we want to store on a host path volume is the configured STATE_PATH. The STATE_PATH directory was introduced in elastic/beats#24817 and should also be documented in the official documentation in https://github.com/elastic/observability-docs/tree/main/docs/en/ingest-management

@cmacknz
Copy link
Member Author

cmacknz commented May 5, 2023

Closed by #2550

@cmacknz cmacknz closed this as completed May 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
8.8-candidate documentation Improvements or additions to documentation Team:Elastic-Agent Label for the Agent team
Projects
None yet
Development

No branches or pull requests

1 participant