apache / couchdb-helm

Apache CouchDB Helm Chart

Home Page:https://couchdb.apache.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[ENH] - Provide a liveliness check for storage

jdunhamvrtx opened this issue · comments

Is your feature request related to a problem? Please describe.
CouchDB provided an error on Read-Only storage but did not trigger the readiness check on the _up endpoint (default provided readiness check).

Describe the solution you'd like
I propose the current readiness check be moved to liveliness and readiness be similar to sh -c 'touch /opt/couchdb/data/.ready'. If it exits != 0 for storage issues the pod will reset which would trigger a storage mount refresh.

Describe alternatives you've considered
I've made this change in local system. It works.