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:
![image](https://private-user-images.githubusercontent.com/84182592/254590638-338b6752-ec72-4e05-975d-da08989ef7eb.PNG?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5ODQwODcsIm5iZiI6MTczODk4Mzc4NywicGF0aCI6Ii84NDE4MjU5Mi8yNTQ1OTA2MzgtMzM4YjY3NTItZWM3Mi00ZTA1LTk3NWQtZGEwODk4OWVmN2ViLlBORz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA4VDAzMDMwN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTAyMDRiMmNhMzllZGMwNWFiZjBjNmUzNGU2ZTYzODZlYzkyZWNjMzI0YTc2YjhlZTEwODRhZjcwNGExZmRhNTQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.FlbqjZ6iu3MKThqknhjyu1UeTEXcw5BMNTnUBVLFaEk)
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