# Elastic Agent with Kubernetes integration conflicting with System integration

**URL:** <https://discuss.elastic.co/t/elastic-agent-with-kubernetes-integration-conflicting-with-system-integration/371106>\
**Category:** Elastic Agent\
**Created:** [November 27, 2024, 12:13am UTC](https://discuss.elastic.co/t/elastic-agent-with-kubernetes-integration-conflicting-with-system-integration/371106 "2024-11-27T00:13:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ingmf](https://avatars.discourse-cdn.com/v4/letter/i/dec6dc/32.png) [@ingmf](https://discuss.elastic.co/u/ingmf)\
**Post date:** [November 27, 2024, 12:13am UTC](https://discuss.elastic.co/t/elastic-agent-with-kubernetes-integration-conflicting-with-system-integration/371106/1 "2024-11-27T00:13:52Z")

</div>

Hello,  
I have installed a Fleet Server and I am using Elastic Agent 8.15.5 as Daemonset on Kubernetes.

In my Agent Policy I have added **system & kubernetes integration together** but not all Kubernetes metrics are coming in the dashboard of Kubernetes (nodes, namespace, daemonset, etc are not coming).  
If I remove "system" integration, then everything will work as expected in the Kubernetes dashboards.

In the agent info I can see these errors when I use both integrations together:

```auto
Unit state changed kubernetes/metrics-default-kubernetes/metrics-kubelet-xxxxxx (STARTING->FAILED): Failed: pid 'xxxxxx' exited with code '-1'

Unit state changed kubernetes/metrics-default-kubernetes/metrics-events-xxxxxx (STARTING->FAILED): Failed: pid 'xxxxxx' exited with code '-1'

Unit state changed kubernetes/metrics-default-kubernetes/metrics-kube-apiserver-xxxxxx (STARTING->FAILED): Failed: pid 'xxxxxx' exited with code '-1'

Unit state changed kubernetes/metrics-default-kubernetes/metrics-kube-state-metrics-xxxxxx (STARTING->FAILED): Failed: pid 'xxxxxx' exited with code '-1'

Unit state changed kubernetes/metrics-default (HEALTHY->FAILED): Failed: pid 'xxxxxx' exited with code '-1'

Component state changed kubernetes/metrics-default (HEALTHY->FAILED): Failed: pid 'xxxxxx' exited with code '-1'

```

Do you know if any conflicts on using both together? How I can monitor System of my virtual machines where I have Kubernetes?

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![strawgate](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/strawgate/32/131008_2.png) [@strawgate](https://discuss.elastic.co/u/strawgate)\
**Post date:** [November 27, 2024, 1:14am UTC](https://discuss.elastic.co/t/elastic-agent-with-kubernetes-integration-conflicting-with-system-integration/371106/2 "2024-11-27T01:14:33Z")

</div>

Can you check the memory usage of the pod? Is it hitting the memory limit in the manifest?

---

<div class="post-metadata">

**Author:** ![ingmf](https://avatars.discourse-cdn.com/v4/letter/i/dec6dc/32.png) [@ingmf](https://discuss.elastic.co/u/ingmf)\
**Post date:** [January 15, 2025, 9:25am UTC](https://discuss.elastic.co/t/elastic-agent-with-kubernetes-integration-conflicting-with-system-integration/371106/3 "2025-01-15T09:25:59Z")

</div>

Yes, is hitting the memory limit and CPU limit as well.  
So the Elastic Agent as DaemonSet in Kubernetes need all these resources? It's 300m CPU and 700MB memory for each pod in the nodes.  
I have migrated from Filebeat but it doesn't need all these resources.

Do you have any idea?

---

<div class="post-metadata">

**Author:** ![strawgate](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/strawgate/32/131008_2.png) [@strawgate](https://discuss.elastic.co/u/strawgate)\
**Post date:** [January 15, 2025, 6:23pm UTC](https://discuss.elastic.co/t/elastic-agent-with-kubernetes-integration-conflicting-with-system-integration/371106/4 "2025-01-15T18:23:57Z")

</div>

We have continued to improve memory consumption on Kubernetes and would recommend moving to 8.17 if possible.

Memory consumption can depend on the number of pods, tasks, what integrations you have configured, what data you are pulling, and if you have modified the output settings.

It working with the system integration disabled might mean you only need to increase the limit by ~150 or 200mb to get it working again.
