Is it possible to mount postgres volume in space? #278
CelioVTeixeira
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is it possible to mount postgres volume in space?
could someone help me with this
`apiVersion: v1
kind: Namespace
metadata:
name: volume-teste
apiVersion: com.ie.ibm.hpsys/v1alpha1
kind: Dataset
metadata:
name: test-dataset
namespace: volume-teste
spec:
local:
type: "COS"
accessKeyID: "xxxOxxxxxxxxxxx"
secretAccessKey: "xxxxxmxxxxxxxxxxxxxxxxxxxxcxxxxx"
endpoint: "https://xxxxxxxxxxxxx"
bucket: "volume-teste"
apiVersion: v1
kind: Pod
metadata:
name: postgres
namespace: volume-teste
spec:
containers:
- name: postgres
image: "postgres:13"
env:
- name: POSTGRES_USER
value: "xxxxxxxx"
- name: POSTGRES_PASSWORD
value: "xxxxxxxx"
volumeMounts:
- mountPath: "/var/lib/postgresql/data"
name: "test-dataset"
volumes:
- name: "test-dataset"
persistentVolumeClaim:
claimName: "test-dataset"`
Output:
chmod: changing permissions of '/var/lib/postgresql/data': Operation not permitted 2023-07-19T13:20:31.062438835Z The files belonging to this database system will be owned by user "postgres". 2023-07-19T13:20:31.062519442Z This user must also own the server process. 2023-07-19T13:20:31.062530644Z 2023-07-19T13:20:31.062536366Z The database cluster will be initialized with locale "en_US.utf8". 2023-07-19T13:20:31.062543682Z The default database encoding has accordingly been set to "UTF8". 2023-07-19T13:20:31.062548451Z The default text search configuration will be set to "english". 2023-07-19T13:20:31.062572944Z 2023-07-19T13:20:31.062578018Z Data page checksums are disabled. 2023-07-19T13:20:31.062592916Z 2023-07-19T13:20:31.081540211Z initdb: error: could not change permissions of directory "/var/lib/postgresql/data": Operation not permitted 2023-07-19T13:20:31.083994705Z fixing permissions on existing directory /var/lib/postgresql/data ...
could someone help me with this please
Beta Was this translation helpful? Give feedback.
All reactions