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:
$ 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:
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?
$ minishift version minishift v1.34.2+83ebaab $ minishift openshift version openshift v3.11.0+8bff772-387