Open gonzojive opened 2 years ago
Hi, are you supplying a different persistent volume than the one that is automatically used?
Yes. It seems to only happen using a volume mounted using minikube mount
.
On Mon, May 23, 2022 at 9:47 AM noguchitoshi @.***> wrote:
Hi, are you supplying a different persistent volume than the one that is automatically used?
— Reply to this email directly, view it on GitHub https://github.com/cockroachdb/cockroach-operator/issues/897#issuecomment-1134906952, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAUO55MKE3XFC5MGFSRVFLVLOZA7ANCNFSM5V5ZC5SA . You are receiving this because you authored the thread.Message ID: @.***>
I followed the official instructions for a local kubernetes cluster. It worked.
I then tried to use a persistent volume for the database data. The cockroachdb pods fail to start with the following error message:
I believe https://github.com/kubernetes/minikube/issues/1990 is causing the permission denied error because the mounted persistent volume is not writable by user 1000581000 despite fsGroup being set to 1000581000 for the volume.
A workaround might be to modify the operator to
chown
orchgrp
the/cockroach/cockroach-data
directory appropriately.https://github.com/cockroachdb/cockroach-operator/blob/c133bd007e0ee9e6a0bc25f408943c5200188b71/pkg/resource/statefulset.go#L46