github.com/alibaba/sealer@v0.8.6-0.20220430115802-37a2bdaa8173/applications/redis-operator/README.md (about)

     1  # redis operator
     2  
     3  Make sure you have the default storage class:
     4  
     5  ```
     6  [root@iZ2zeaxzynknewlf0dkin9Z redis]# kubectl get sc
     7  NAME                 PROVISIONER        RECLAIMPOLICY   VOLUMEBINDINGMODE      ALLOWVOLUMEEXPANSION   AGE
     8  hostpath (default)   openebs.io/local   Delete          WaitForFirstConsumer   false                  25h
     9  openebs-device       openebs.io/local   Delete          WaitForFirstConsumer   false                  25h
    10  openebs-hostpath     openebs.io/local   Delete          WaitForFirstConsumer   false                  25h
    11  ```
    12  
    13  Use the redis:
    14  
    15  ```
    16  docker run -it --rm redis redis-cli -h rfs-redisfailover -p 26379
    17  ```
    18  
    19  If you want to use it out of cluster, you should change the svc type to NodePort.