schreiben auf "storage"
fixing permissions on existing directory /var/lib/postgresql/data ... initdb: error: could not change permissions of directory "/var/lib/postgresql/data": Operation not permitted
debug
kl.mueller@ocpbastionp001 [0] : ~/develop/postgresql
$ oc get clusterversions.config.openshift.io
NAME VERSION AVAILABLE PROGRESSING SINCE STATUS
version 4.8.13 True False 3d4h Cluster version is 4.8.13
kl.mueller@ocpbastionp001 [0] : ~/develop/postgresql
$ oc whoami -c
dvs-databases/api-capc-muenchen-de:6443/kl.mueller
kl.mueller@ocpbastionp001 [0] : ~/develop/postgresql
$ oc new-project dvs-databases
Already on project "dvs-databases" on server "https://api.capc.muenchen.de:6443".
You can add applications to this project with the 'new-app' command. For example, try:
oc new-app rails-postgresql-example
to build a new example application in Ruby. Or use kubectl to deploy a simple Kubernetes application:
kubectl create deployment hello-node --image=k8s.gcr.io/serve_hostname
kl.mueller@ocpbastionp001 [0] : ~/develop/postgresql
$ oc kustomize manifests | oc apply -f -
secret/pull-o4oe-igbvc-demos-images created
service/postgresql created
deployment.apps/postgresql created
kl.mueller@ocpbastionp001 [0] : ~/develop/postgresql
$ oc get po
NAME READY STATUS RESTARTS AGE
postgresql-7b9c57f4bd-qsqqn 0/1 CrashLoopBackOff 1 8s
kl.mueller@ocpbastionp001 [0] : ~/develop/postgresql
$ oc logs postgresql-7b9c57f4bd-qsqqn
chmod: /var/lib/postgresql/data: Operation not permitted
chmod: /var/run/postgresql: Operation not permitted
The files belonging to this database system will be owned by user "1000860000".
This user must also own the server process.
The database cluster will be initialized with locale "en_US.utf8".
The default database encoding has accordingly been set to "UTF8".
The default text search configuration will be set to "english".
Data page checksums are disabled.
fixing permissions on existing directory /var/lib/postgresql/data ... initdb: error: could not change permissions of directory "/var/lib/postgresql/data": Operation not permitted
kl.mueller@ocpbastionp001 [0] : ~/develop/postgresql
debug
@jonas meint das alpine kein nicht anyuid fahren kan
lösung
-
overlay oder extra deployment mit bitnami image
Edited by Klaus Mueller