I am trying to run a Redis cluster in Kubernetes in DigitalOcean. As a poc, I simply tried running an example I found online (https://github.com/sanderploegsma/redis-cluster/blo
This:
no storage class is set
And an empty output for kubectl describe sc
means that there's no storage class.
I recommend installing the CSI-driver for Digital Ocean. That will create a do-block-storage
class using the Kubernetes CSI interface.
Another option is to use local storage. Using a local storage class:
$ cat <
Then for either case you may need to set it as a default storage class if you don't specify storageClassName
in your PVC:
$ kubectl patch storageclass local-storage -p '{"metadata": {"annotations":{"storageclass.kubernetes.io/is-default-class":"true"}}}'
or
$ kubectl patch storageclass do-block-storage -p '{"metadata": {"annotations":{"storageclass.kubernetes.io/is-default-class":"true"}}}'