-1

When I installed with "helm install redis bitnami/redis" then persistent volume claims and persistent volumes were created too. However now, I am trying to run same command but persistent volumes does not seem on Kubernetes. Therefore pod is not running.

Onur AKKÖSE
  • 84
  • 2
  • 10

1 Answers1

2

1. Run kubectl get pvc

  • you should see the expected PVCs listed, but in Pending state.

  • If you don't see that, this means you are in another namespace

2. Run kubectl describe pvc to investigate why PVCs are pending.

  • sometimes, the dynamic storage provisioner is down, so you need to make it up

Update

@Onur provided what does "describe pvc" command print :

failed to provision volume with StorageClass "do-block-storage":
 rpc error: code = ResourceExhausted desc = volume limit (10) has been reached. 
Current number of volumes: 10. Please contact support."

This means that :

  • your default storage class (kubectl get sc) is named do-block-storage.
  • that your admin set quota of number of volumes that can used ( which is 10)

Check with your admin to increase the quota of volumes to be used.

Alternatively, try to delete TOTALLY the 1st installation of redis if you don't needed (kubectl delete pvc ...) , this will free some PVCs, so you can provision them again.

Abdennour TOUMI
  • 87,526
  • 38
  • 249
  • 254
  • Thank you for help. I got this error : "failed to provision volume with StorageClass "do-block-storage": rpc error: code = ResourceExhausted desc = volume limit (10) has been reached. Current number of volumes: 10. Please contact support." – Onur AKKÖSE Dec 06 '21 at 15:46
  • I updated the answer! i hope it help – Abdennour TOUMI Dec 06 '21 at 15:54
  • but there is just one pvc, I remove all, but I get the same error again – Onur AKKÖSE Dec 06 '21 at 16:05
  • Run `kubectl get pvc -A` to check all PVCs in all namespaces.. another thing, check also PV , may be PV is still there `kubectl get pv` – Abdennour TOUMI Dec 06 '21 at 16:21
  • ı remove volumes from my cloud provider and error has changed. Give me "no persistent volumes available for this claim and no storage class is set" error but helm should create persistent volume too. – Onur AKKÖSE Dec 06 '21 at 16:32
  • make sure what you have as storage classes `kubectl get sc`, select one of them and use it as per [values scheme of bitnami/redis](https://github.com/bitnami/charts/blob/master/bitnami/redis/values.yaml#L19) . i.e. `helm install redis bitnami/redis --set global. storageClass=YOURCLASS` – Abdennour TOUMI Dec 06 '21 at 16:40
  • I did but pvc stills give this error " no volume plugin matched name: kubernetes.io/no-provisioner" – Onur AKKÖSE Dec 06 '21 at 17:20