timescale / helm-charts

Configuration and Documentation to run TimescaleDB in your Kubernetes cluster
Apache License 2.0
261 stars 223 forks source link

Operation not permitted on `/var/lib/postgresql/pgdata` while using with Amazon EFS #617

Closed manoj016 closed 9 months ago

manoj016 commented 11 months ago

What did you do?

I am using timescaledb-multinode helm charts

I want to use Amazon EFS instead of local provisioner, so changed the storageClass inside the values.yaml file to efs-cs.

I am getting the below error in the initdb container for all the replicas.

install: cannot change owner and permissions of ‘/var/lib/postgresql/pgdata’: Operation not permitted

Did you expect to see some different?

The above is not working expected. The cluster should be up and running.

Environment

timescaledb-multinode

timescaledb-image: timescale/timescaledb-ha:pg15.3-ts2.11.1-all

image: repository: timescale/timescaledb-ha tag: pg15.3-ts2.11.1-all pullPolicy: IfNotPresent

credentials: accessNode: superuser: tea dataNode: superuser: coffee

env:

persistentVolume: enabled: true size: 200G storageClass: "efs-sc" subPath: "" mountPath: "/var/lib/postgresql" annotations: helm.sh/resource-policy: keep volume.beta.kubernetes.io/storage-class: efs-sc accessModes:

resources: {}

postgresql: databases:

nodeSelector: {} tolerations: [] affinityTemplate: | podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution:

serviceAccount: create: true name:


* Kubernetes version information:

  `kubectl version`

Client Version: version.Info{Major:"1", Minor:"27", GitVersion:"v1.27.3", GitCommit:"25b4e43193bcda6c7328a6d147b1fb73a33f1598", GitTreeState:"clean", BuildDate:"2023-06-14T09:47:38Z", GoVersion:"go1.20.5", Compiler:"gc", Platform:"darwin/arm64"} Kustomize Version: v5.0.1 Server Version: version.Info{Major:"1", Minor:"26+", GitVersion:"v1.26.5-eks-c12679a", GitCommit:"c03cecf98904742cce2e1183f87194102cc9dad9", GitTreeState:"clean", BuildDate:"2023-05-22T20:29:55Z", GoVersion:"go1.19.9", Compiler:"gc", Platform:"linux/amd64"}



* Kubernetes cluster kind:
Amazon EKS
github-actions[bot] commented 10 months ago

This issue went stale because it was not updated in a month. Please consider updating it to improve the quality of the project.

github-actions[bot] commented 9 months ago

This issue was closed because it has been stalled for 30 days with no activity.