We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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:
++ expr 8192 / 4 ++ expr 8192 / 4 + exec /cockroach/cockroach.sh start --join=blahcockroachdb-0.blahcockroachdb.default:26258,blahcockroachdb-1.blahcockroachdb.default:26258,blahcockroachdb-2.blahcockroachdb.default:26258 --advertise-host=blahcockroachdb-1.blahcockroachdb.default --certs-dir=/cockroach/cockroach-certs/ --http-port=8080 --sql-addr=:26257 --listen-addr=:26258 '--log={sinks: {stderr: {channels: [OPS, HEALTH], redact: true}}}' --cache 2048MiB --max-sql-memory 2048MiB unable to GC log files: open /cockroach/cockroach-data/logs: permission denied
I believe kubernetes/minikube#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 or chgrp the /cockroach/cockroach-data directory appropriately.
chown
chgrp
/cockroach/cockroach-data
cockroach-operator/pkg/resource/statefulset.go
Line 46 in c133bd0
The text was updated successfully, but these errors were encountered:
Hi, are you supplying a different persistent volume than the one that is automatically used?
Sorry, something went wrong.
No branches or pull requests
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 kubernetes/minikube#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.cockroach-operator/pkg/resource/statefulset.go
Line 46 in c133bd0
The text was updated successfully, but these errors were encountered: