From 41febf64cc3911f3943371f24ef7ea9cf490872c Mon Sep 17 00:00:00 2001 From: David Kilfoyle Date: Mon, 22 Jan 2024 14:37:20 -0500 Subject: [PATCH 1/2] Add troubleshooting for Agent Out of Memory on K8s --- .../troubleshooting/troubleshooting.asciidoc | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/docs/en/ingest-management/troubleshooting/troubleshooting.asciidoc b/docs/en/ingest-management/troubleshooting/troubleshooting.asciidoc index d036ec613..7f14aa2be 100644 --- a/docs/en/ingest-management/troubleshooting/troubleshooting.asciidoc +++ b/docs/en/ingest-management/troubleshooting/troubleshooting.asciidoc @@ -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. \ No newline at end of file +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 + +On a Kubernetes environment, {agent} may be terminated due to inadequate 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. From f56aa509a3efb82553829765282e3cd343786669 Mon Sep 17 00:00:00 2001 From: David Kilfoyle Date: Mon, 22 Jan 2024 14:40:27 -0500 Subject: [PATCH 2/2] Fixup --- .../ingest-management/troubleshooting/troubleshooting.asciidoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/en/ingest-management/troubleshooting/troubleshooting.asciidoc b/docs/en/ingest-management/troubleshooting/troubleshooting.asciidoc index 7f14aa2be..1f1177c27 100644 --- a/docs/en/ingest-management/troubleshooting/troubleshooting.asciidoc +++ b/docs/en/ingest-management/troubleshooting/troubleshooting.asciidoc @@ -719,7 +719,7 @@ After running these steps your {agents} should be able to connect with {fleet} a [[agent-oom-k8s]] == {agent} Out of Memory errors on Kubernetes -On a Kubernetes environment, {agent} may be terminated due to inadequate memory. +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: