apache / couchdb-helm

Apache CouchDB Helm Chart
https://couchdb.apache.org/
Apache License 2.0
49 stars 64 forks source link

Unable to deploy on openshift cluster using helm chart #182

Closed jcmluquez closed 3 weeks ago

jcmluquez commented 3 weeks ago

Describe the bug I am trying to install CouchDB 4.5.3 on an Openshift cluster, using helm chart, with persisten volumes but pods go into CrashLoopBackOff because of some permission error. This is the log: /docker-entrypoint.sh: line 89: /opt/couchdb/.erlang.cookie: Permission denied

Version of Helm and Kubernetes: Helm v3.16.2, Kubernetes v1.28.7+6e2789b

What happened: Install command: helm install couchdb couchdb/couchdb --version=4.5.3 --set allowAdminParty=true --set persistentVolume.enabled=true --set couchdbConfig.couchdb.uuid=$(curl https://www.uuidgenerator.net/api/version4 2>/dev/null | tr -d -) Every resource seems to be created ok, but the 3 pods got into CrashLoopBackOff state because of the following error: /docker-entrypoint.sh: line 89: /opt/couchdb/.erlang.cookie: Permission denied

How to reproduce it (as minimally and precisely as possible):

# oc login <cluster credentials>
# oc project couchdb
# helm repo add couchdb https://apache.github.io/couchdb-helm
# helm install couchdb couchdb/couchdb --version=4.5.3 --set allowAdminParty=true --set persistentVolume.enabled=true --set couchdbConfig.couchdb.uuid=$(curl https://www.uuidgenerator.net/api/version4 2>/dev/null | tr -d -)

Anything else we need to know: Init-copy container log:

total 8

-rw-r--r-- 1 1001090000 1001090000 225 Oct 28 13:01 seedlist.ini -rw-r--r-- 1 1001090000 1001090000 106 Oct 28 13:01 chart.ini

Couchdb container log: /docker-entrypoint.sh: line 89: /opt/couchdb/.erlang.cookie: Permission denied

Allready tried without persistentce and got the same error.

jcmluquez commented 3 weeks ago

Fixed running: oc adm policy add-scc-to-user anyuid -z couchdb-couchdb and scale to 0, then to 3 again.