# ECK - can we run ECK operator in privileged mode

**URL:** <https://discuss.elastic.co/t/eck-can-we-run-eck-operator-in-privileged-mode/240474>\
**Category:** Elastic Cloud on Kubernetes (ECK)\
**Created:** [July 9, 2020, 7:43am UTC](https://discuss.elastic.co/t/eck-can-we-run-eck-operator-in-privileged-mode/240474 "2020-07-09T07:43:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![aman26ps](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aman26ps/32/82604_2.png) [@aman26ps](https://discuss.elastic.co/u/aman26ps)\
**Post date:** [July 9, 2020, 7:43am UTC](https://discuss.elastic.co/t/eck-can-we-run-eck-operator-in-privileged-mode/240474/1 "2020-07-09T07:43:53Z")

</div>

Hi Team,

Can we run elastic search pod in privileged mode? i want to map the host network of GKE to my elastic search pod

use case : We are looking for running some of ES data nodes on host network (Pod needs to have host IP )so that we can join them to a running ES cluster to migrate ES VM to VM on GKE.

Any comment is helpful, i tried this with discovery-gce plugin it did not work, any other solution is appreciated.

---

<div class="post-metadata">

**Author:** ![sebgl](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sebgl/32/48702_2.png) [@sebgl](https://discuss.elastic.co/u/sebgl)\
**Post date:** [July 15, 2020, 10:05am UTC](https://discuss.elastic.co/t/eck-can-we-run-eck-operator-in-privileged-mode/240474/2 "2020-07-15T10:05:46Z")

</div>

You can override the `podTemplate` section of the Elasticsearch spec with pod-related constraints (eg. privilege).

> We are looking for running some of ES data nodes on host network (Pod needs to have host IP )so that we can join them to a running ES cluster to migrate ES VM to VM on GKE.

This is likely not going to work. ECK needs to manage the full cluster, it cannot run a subset of data nodes of another existing cluster. Have you considered cross-cluster replication or restoring from snapshot?

---

<div class="post-metadata">

**Author:** ![aman26ps](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aman26ps/32/82604_2.png) [@aman26ps](https://discuss.elastic.co/u/aman26ps)\
**Post date:** [July 15, 2020, 10:49am UTC](https://discuss.elastic.co/t/eck-can-we-run-eck-operator-in-privileged-mode/240474/3 "2020-07-15T10:49:36Z")

</div>

makes sense @sebgl thanks for your input

---

<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, 8:05am UTC](https://discuss.elastic.co/t/eck-can-we-run-eck-operator-in-privileged-mode/240474/4 "2022-11-04T08:05:38Z")

</div>


