# Quickstart ECK SecurityContext.RunAsUser is forbidden

**URL:** <https://discuss.elastic.co/t/quickstart-eck-securitycontext-runasuser-is-forbidden/206622>\
**Category:** Elasticsearch\
**Created:** [November 5, 2019, 2:04pm UTC](https://discuss.elastic.co/t/quickstart-eck-securitycontext-runasuser-is-forbidden/206622 "2019-11-05T14:04:52Z")\
**Posts on this page:** 2\
**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 5, 2019, 2:04pm UTC](https://discuss.elastic.co/t/quickstart-eck-securitycontext-runasuser-is-forbidden/206622/1 "2019-11-05T14:04:52Z")

</div>

I am currently trying to deploy Elasticsearch onto my kubernetes cluster that is managed via PKS. I was able to successfully start the elastic-operator and install the CRD's. When attempting to deploy an Elasticsearch cluster though I keep getting this error: `create Pod test-es-default-0 in StatefulSet test-es-default failed error: pods "test-es-default-0" is forbidden: SecurityContext.RunAsUser is forbidden`. Is there a way to fix this via configuration variables on the ECK side or will it be necessary to talk to my cluster administrator to fix the pod security policies?

---

<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 3, 2019, 2:04pm UTC](https://discuss.elastic.co/t/quickstart-eck-securitycontext-runasuser-is-forbidden/206622/2 "2019-12-03T14:04:52Z")

</div>

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