Skip to content
This repository has been archived by the owner on Feb 22, 2022. It is now read-only.

Redis fails to run on minikube with error on access permission to a PVC #3441

Closed
leopoldodonnell opened this issue Jan 25, 2018 · 4 comments
Closed

Comments

@leopoldodonnell
Copy link
Contributor

minikube is an important tool. Stable charts should work 'out of the box' or provide documentation on how to run on this platform.

Steps to reproduce:

Using chart stable/redis version 1.1.9

$ helm install stable/redis --name my-redis
NAME:   redis
LAST DEPLOYED: Thu Jan 25 09:37:31 2018
NAMESPACE: default
STATUS: DEPLOYED
...
$ 

A quick look via the dashboard or from kubectl will reveal that the redis pod is stuck in crashLoopBackOff.

Taking a closer look at the logs we see:

$ kubectl logs redis-redis-74cb746d9f-gc27v

Welcome to the Bitnami redis container
Subscribe to project updates by watching https://github.com/bitnami/bitnami-docker-redis
Submit issues and feature requests at https://github.com/bitnami/bitnami-docker-redis/issues
Send us your feedback at [email protected]

nami    INFO  Initializing redis
redis   INFO  ==> Validating inputs...
Error executing 'postInstallation': EACCES: permission denied, mkdir '/bitnami/redis'
@muniyalr
Copy link

@sameersbn Is this related to the same issue https://github.com/bitnami/bitnami-docker-redis/issues/87

which you had provided a fix

+      initContainers:
+      - name: "fix-permissions"
+        image: "busybox"
+        imagePullPolicy: "{{ .Values.imagePullPolicy }}"
+        command: ["sh", "-c", "chown -R 1001:1001 /bitnami"]
+        volumeMounts:
+        - name: redis-data
+          mountPath: /bitnami

and we have to wait for the upstream - fix
kubernetes/minikube#1990

@krancour
Copy link
Contributor

@leopoldodonnell, this appears to be a know issue with minikube itself: kubernetes/minikube#1990

@leopoldodonnell
Copy link
Contributor Author

leopoldodonnell commented Jan 25, 2018 via email

@leopoldodonnell
Copy link
Contributor Author

Submitted a PR that provides a Note to minikube users. For the time being, avoid pvc's or engineer redis to run as root.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants