Skip to content

Commit

Permalink
Add troubleshooting for Agent Out of Memory on K8s (#842)
Browse files Browse the repository at this point in the history
* Add troubleshooting for Agent Out of Memory on K8s

* Fixup
  • Loading branch information
kilfoyle authored Jan 24, 2024
1 parent 40279d4 commit eed5a20
Showing 1 changed file with 18 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -713,4 +713,21 @@ The final command will install {agent}. For example:
sudo ./elastic-agent install --url=https://fleet-server:8220 --enrollment-token=bXktc3VwZXItc2VjcmV0LWVucm9sbWVudC10b2tlbg==
----

After running these steps your {agents} should be able to connect with {fleet} again.
After running these steps your {agents} should be able to connect with {fleet} again.

[discrete]
[[agent-oom-k8s]]
== {agent} Out of Memory errors on Kubernetes

In a Kubernetes environment, {agent} may be terminated with reason `OOMKilled` due to inadequate available memory.

To detect the problem, run the `kubectl describe pod` command and check the results for the following content:

[source,sh]
----
Last State: Terminated
Reason: OOMKilled
Exit Code: 137
----

To resolve the problem, allocate additional memory to the agent and then restart it.

0 comments on commit eed5a20

Please sign in to comment.