dev4devs-com / postgresql-operator

Operator in Go developed using the Operator Framework to package, install, configure and manage a PostgreSQL database.
Apache License 2.0
29 stars 15 forks source link

GKE/EKS: mkdir: cannot create directory ‘/data/pgdata’: Permission denied #94

Closed kumo-rn5s closed 1 year ago

kumo-rn5s commented 2 years ago

Question

I got this error in my GKE & EKS deployments by running make install, but it works well on my local minikube. Through searching, I think this may be related to the securityContext setting.

Like this

 securityContext:
    runAsUser: 1000
    fsGroup: 2000

So this is what you mean about To install you need be logged in as a user with cluster privileges like the system:admin user. in README?

How can i add securityContext setting to Pod?