DigitalOcean pod has unbound immediate PersistentVolumeClaims

前端 未结 2 1471
刺人心
刺人心 2021-02-20 04:01

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

2条回答
  •  渐次进展
    2021-02-20 04:53

    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"}}}'
    

提交回复
热议问题