# Missing documentation for ECK stack in non-default namespace

**URL:** <https://discuss.elastic.co/t/missing-documentation-for-eck-stack-in-non-default-namespace/198802>\
**Category:** Elastic Cloud on Kubernetes (ECK)\
**Created:** [September 9, 2019, 11:07pm UTC](https://discuss.elastic.co/t/missing-documentation-for-eck-stack-in-non-default-namespace/198802 "2019-09-09T23:07:07Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![sarjeet](https://avatars.discourse-cdn.com/v4/letter/s/ebca7d/32.png) [@sarjeet](https://discuss.elastic.co/u/sarjeet)\
**Post date:** [September 9, 2019, 11:07pm UTC](https://discuss.elastic.co/t/missing-documentation-for-eck-stack-in-non-default-namespace/198802/1 "2019-09-09T23:07:07Z")

</div>

I haven't found any documentation that states on how to run ECK stack on k8s with non-default namespace. Currently, Elasticsearch and kibana samples also provided with default namespace.

I tried to run ECK stack with non-default namespace, but it failed at different places and had to debug what the issue is. It would have been helpful if there is a documentation that can state what is needed to run ECK stack with non-default namespace.

---

<div class="post-metadata">

**Author:** ![Anya\_Sabo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/anya_sabo/32/49903_2.png) [@Anya\_Sabo](https://discuss.elastic.co/u/Anya_Sabo)\
**Post date:** [September 10, 2019, 12:07am UTC](https://discuss.elastic.co/t/missing-documentation-for-eck-stack-in-non-default-namespace/198802/2 "2019-09-10T00:07:46Z")

</div>

Hey Sarjeet, do you mean you would like to see docs on to run the operator only in a specific namespace (rather than cluster-wide), and not in the default namespace?

---

<div class="post-metadata">

**Author:** ![sarjeet](https://avatars.discourse-cdn.com/v4/letter/s/ebca7d/32.png) [@sarjeet](https://discuss.elastic.co/u/sarjeet)\
**Post date:** [September 10, 2019, 2:25am UTC](https://discuss.elastic.co/t/missing-documentation-for-eck-stack-in-non-default-namespace/198802/3 "2019-09-10T02:25:18Z")

</div>

@Anya_Sabo Not the operator, but the ElasticSearch and other CRs cluster. The operator is currently running in `elastic-system` which is fine but the elastic/kibana/apmserver doesn't provide any docs on running these with non-default namespace. Hope this clarify the question/request.

---

<div class="post-metadata">

**Author:** ![sarjeet](https://avatars.discourse-cdn.com/v4/letter/s/ebca7d/32.png) [@sarjeet](https://discuss.elastic.co/u/sarjeet)\
**Post date:** [September 10, 2019, 5:15pm UTC](https://discuss.elastic.co/t/missing-documentation-for-eck-stack-in-non-default-namespace/198802/4 "2019-09-10T17:15:29Z")

</div>

@Anya_Sabo For now, I reduced the custom CR to minimal configuration and able to deploy ES cluster with non-default namespace:

```auto
apiVersion: elasticsearch.k8s.elastic.co/v1alpha1
kind: Elasticsearch
metadata:
  name: es-test
  namespace: elastic-test-ns

```

But, using the podTemplate, custom certificates, PVCs etc require these in same namespace as well. It would be helpful to have all references to use non-default namespace altogether to avoid hitting any weird issues.

---

<div class="post-metadata">

**Author:** ![Anya\_Sabo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/anya_sabo/32/49903_2.png) [@Anya\_Sabo](https://discuss.elastic.co/u/Anya_Sabo)\
**Post date:** [September 10, 2019, 5:30pm UTC](https://discuss.elastic.co/t/missing-documentation-for-eck-stack-in-non-default-namespace/198802/5 "2019-09-10T17:30:16Z")

</div>

Got it, thank you for clarifying. Per our offline discussion it may be worthwhile to be explicit about what namespace things are going in for the provided YAML and kubectl examples.

---

<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:** [November 4, 2022, 7:24am UTC](https://discuss.elastic.co/t/missing-documentation-for-eck-stack-in-non-default-namespace/198802/6 "2022-11-04T07:24:44Z")

</div>


