Skip to content

container has runAsNonRoot and image has non-numeric user (root)

Summary

When create a postgres cluster, pod can not start by error:

Error: container has runAsNonRoot and image has non-numeric user (root), cannot verify user is non-root (pod: "test-stackgres-0_rds(479b9c03-9c93-4b24-bb0f-203c24b16d0e)", container: setup-arbitrary-user)

I checked statefulsets and found that

image

Current Behaviour

Just add a cluster by ui image

Steps to reproduce

same with Current Behaviour

Expected Behaviour

None

Possible Solution

Maybe remove runAsNonRoot param.

Environment

  • StackGres version: StackGresv1.2.0-SNAPSHOT

  • Kubernetes version: OKD 4.7

Relevant logs and/or screenshots

image

Edited by cdmikechen