# Elasticsearch helm chart, are privileged containers necessary?

**URL:** <https://discuss.elastic.co/t/elasticsearch-helm-chart-are-privileged-containers-necessary/206205>\
**Category:** Elasticsearch\
**Created:** [November 1, 2019, 6:15pm UTC](https://discuss.elastic.co/t/elasticsearch-helm-chart-are-privileged-containers-necessary/206205 "2019-11-01T18:15:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nfickas](https://avatars.discourse-cdn.com/v4/letter/n/278dde/32.png) [@nfickas](https://discuss.elastic.co/u/nfickas)\
**Post date:** [November 1, 2019, 6:15pm UTC](https://discuss.elastic.co/t/elasticsearch-helm-chart-are-privileged-containers-necessary/206205/1 "2019-11-01T18:15:06Z")

</div>

Hello,

I am trying to deploy the elasticsearch helm chart onto a PKS cluster. I keep running into issues since the PodSecurityPolicy that is in effect does not allow for privileged containers.

Is there a way to run the elasticsearch helm chart without the need of using a privileged container?

Thanks!

---

<div class="post-metadata">

**Author:** ![Julien\_MAILLERET](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/julien_mailleret/32/45074_2.png) [@Julien\_MAILLERET](https://discuss.elastic.co/u/Julien_MAILLERET)\
**Post date:** [November 27, 2019, 11:01am UTC](https://discuss.elastic.co/t/elasticsearch-helm-chart-are-privileged-containers-necessary/206205/2 "2019-11-27T11:01:54Z")

</div>

Hi @nfickas,

`privileged` mode is only used for [sysctlInitContainer](https://github.com/elastic/helm-charts/blob/master/elasticsearch/templates/statefulset.yaml#L138-L148). You can disable it with value `sysctlInitContainer.enabled=false`.

---

<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:** [December 25, 2019, 11:11am UTC](https://discuss.elastic.co/t/elasticsearch-helm-chart-are-privileged-containers-necessary/206205/3 "2019-12-25T11:11:16Z")

</div>

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