# Not able to fetch data from openshift cluster, when using different namespace

**URL:** <https://discuss.elastic.co/t/not-able-to-fetch-data-from-openshift-cluster-when-using-different-namespace/338232>\
**Category:** Elastic Agent\
**Tags:** elastic-stack-monitoring\
**Created:** [July 12, 2023, 2:12pm UTC](https://discuss.elastic.co/t/not-able-to-fetch-data-from-openshift-cluster-when-using-different-namespace/338232 "2023-07-12T14:12:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![suryakant.k](https://avatars.discourse-cdn.com/v4/letter/s/eb8c5e/32.png) [@suryakant.k](https://discuss.elastic.co/u/suryakant.k)\
**Post date:** [July 12, 2023, 2:12pm UTC](https://discuss.elastic.co/t/not-able-to-fetch-data-from-openshift-cluster-when-using-different-namespace/338232/1 "2023-07-12T14:12:16Z")

</div>

I need to add elastic agent host in openshift kubernetes cluster,  
When I am changing namespace in yaml file to elk from kube-system, Pods are not getting ready, daemonset is not ready.  
But when I am using kube-system as a namespace, daemonset and pods are ready.

The Problem is I cannot use kube-system namespace for elastic-agent.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [August 9, 2023, 2:12pm UTC](https://discuss.elastic.co/t/not-able-to-fetch-data-from-openshift-cluster-when-using-different-namespace/338232/2 "2023-08-09T14:12:53Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
