-
Notifications
You must be signed in to change notification settings - Fork 366
New issue
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
v0.2.0 Sentinel Config ReadOnly #35
Comments
Hi! For enabling the RBAC on the operator, I recommend you to use the helm chart. The list of the permissions needed are here. Apart from that, I'm not able to reproduce your issue. Here is what I've done:
If I check the status of the redises, I get this:
The status of the sentinels are this:
Here is an example of the output of a sentinel logs:
Could you give me more information of how to reproduce the issue you're facing? Thank you for opening this issue! |
Thanks for the quick reply! After recreating a cluster (GKE - OS: cos - Kubernetes version: 1.9.4-gke.1) and following your steps about installing Helm, deploying the operator with helm and using the example failover, I still have the same error on the sentinels :
The redis-operator keeps outputing these :
However, the redises seems to be configured properly :
|
Hi @Paic, That file is from a volume taken from a configmap. I don't know if it works different on the images that Google provides, and that's why I cannot reproduce it. The mode can be set with this: https://kubernetes.io/docs/concepts/storage/volumes/#example-pod-with-multiple-secrets-with-a-non-default-permission-mode-set Could you edit that deployment and add About the error that is seen on the logs, it's because the operator is trying to connect to the sentinels to check their status and fix it if needed. |
Hi again, As this is a ConfigMap, it seems based on the K8S API Reference, that it is: It is weird, because at it's said on the API Reference, de default one is Please, keep us updated with this :) |
This likely has to do with the security issue and fix in 1.9.4 that requires configmaps to be readonly. See overarching issue here: kubernetes/kubernetes#61563 |
Can confirm it's working on a fresh GKE 1.9.4 cluster. Thanks guys. |
I deployed redis-operator v0.2.0 on a brand new GKE cluster, added RBAC permissions (also, is there a list of those permissions ?) and the Sentinels seems to crash.
Redis Sentinel logs:
# Sentinel config file /redis/sentinel.conf is not writable: Read-only file system. Exiting...
Am I missing something ?
The text was updated successfully, but these errors were encountered: