# MongoDB Operator on minishift

**URL:** <https://forums.percona.com/t/mongodb-operator-on-minishift/7460>\
**Category:** Percona Server for MongoDB\
**Created:** [March 10, 2020, 6:12am UTC](https://forums.percona.com/t/mongodb-operator-on-minishift/7460 "2020-03-10T06:12:49Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jameskhedley](https://avatars.discourse-cdn.com/v4/letter/j/58956e/32.png) [@jameskhedley](https://forums.percona.com/u/jameskhedley)\
**Post date:** [March 10, 2020, 6:12am UTC](https://forums.percona.com/t/mongodb-operator-on-minishift/7460/1 "2020-03-10T06:12:49Z")

</div>

Hi! Has anyone managed to deploy successfully to minishift recently? I am following the openshift docs but have CreateContainerConfigError on both cluster pods. oc describe pod reports the following:

```auto

$ oc describe pod
...
Type Reason Age From Message
---- ------ ---- ---- -------
Warning Failed 1h (x69 over 1h) kubelet, localhost Error: container has runAsNonRoot and image has non-numeric user (nobody), cannot verify user is non-root
Warning Unhealthy 35m (x96 over 1h) kubelet, localhost (combined from similar events): Liveness probe failed: 2020-03-10 10:59:37.196 main.go:70 FATAL Error connecting to mongodb: no reachable servers
Normal Pulled 20m (x242 over 1h) kubelet, localhost Successfully pulled image "percona/percona-server-mongodb-operator:1.3.0-backup"
Normal Started 10m (x14 over 1h) kubelet, localhost Started container
Warning BackOff 5m (x92 over 54m) kubelet, localhost Back-off restarting failed container
Normal Pulling 10s (x329 over 1h) kubelet, localhost pulling image "percona/percona-server-mongodb-operator:1.3.0-backup"

```

So apparently Openshift wants there to be a valid numeric userid, which doesn’t seem to be set anywhere on the pod. It was suggested it should be like so:

```auto
securityContext: runAsUser: 999

```

Openshift won’t let me edit the pod definition once deployed and I can’t figure out where it would go in the operator. Questions: [LIST=1]  
[_]Is that likely to be the reason the pod doesn’t come up  
[_]If so then how do I set it?  
[/LIST]

```auto

$ minishift version
minishift v1.34.2+83ebaab
$ minishift openshift version
openshift v3.11.0+8bff772-387

```

Thanks!  
James

---

<div class="post-metadata">

**Author:** ![lorraine.pocklington](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/lorraine.pocklington/32/37_2.png) [@lorraine.pocklington](https://forums.percona.com/u/lorraine.pocklington)\
**Post date:** [March 13, 2020, 6:44am UTC](https://forums.percona.com/t/mongodb-operator-on-minishift/7460/2 "2020-03-13T06:44:18Z")

</div>

Hi James Could you tell us what version of minishift you are using please?

---

<div class="post-metadata">

**Author:** ![jameskhedley](https://avatars.discourse-cdn.com/v4/letter/j/58956e/32.png) [@jameskhedley](https://forums.percona.com/u/jameskhedley)\
**Post date:** [March 13, 2020, 7:34am UTC](https://forums.percona.com/t/mongodb-operator-on-minishift/7460/3 "2020-03-13T07:34:51Z")

</div>

hi Lorraine, it was in the post but here again

```auto

$ minishift version minishift v1.34.2+83ebaab $ minishift openshift version openshift v3.11.0+8bff772-387 

```

---

<div class="post-metadata">

**Author:** ![jameskhedley](https://avatars.discourse-cdn.com/v4/letter/j/58956e/32.png) [@jameskhedley](https://forums.percona.com/u/jameskhedley)\
**Post date:** [March 23, 2020, 7:25pm UTC](https://forums.percona.com/t/mongodb-operator-on-minishift/7460/4 "2020-03-23T19:25:18Z")

</div>

Hi! Was there anything you could tell me about this, please? We’re evaluating this operator to use in a product so it would be nice to know if it is stable/usable or not!

---

<div class="post-metadata">

**Author:** ![Mykola](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/mykola/32/30_2.png) [@Mykola](https://forums.percona.com/u/Mykola)\
**Post date:** [March 27, 2020, 3:21am UTC](https://forums.percona.com/t/mongodb-operator-on-minishift/7460/5 "2020-03-27T03:21:22Z")

</div>

Hi James

About your issue with runAsUser, please uncomment platform: openshift line in deploy/cr.yaml file and also make changes which are found in minikube instruction [https://www.percona.com/doc/](https://www.percona.com/doc/)[kubernetes-operator-for-psmongodb/minikube.html](https://www.percona.com/doc/kubernetes-operator-for-psmongodb/minikube.html)

if you are searching for extra stability - we recommend to use fresh OpenShift \>=4.2 and using 1.4.0 version of our MongoDB Operator, it supports 4.2 version of MongoDB and will be available very soon.

---

<div class="post-metadata">

**Author:** ![james\_hedley](https://avatars.discourse-cdn.com/v4/letter/j/91b2a8/32.png) [@james\_hedley](https://forums.percona.com/u/james_hedley)\
**Post date:** [March 31, 2020, 8:06am UTC](https://forums.percona.com/t/mongodb-operator-on-minishift/7460/6 "2020-03-31T08:06:57Z")

</div>

Hi! Thanks. I tried v1.4.0 and can confirm it appears to work out-of-the-box on Minishift (still OpenShift 3.11).
