amaizfinance/redis-operator

Persistent Volumes

pms1969 opened this issue · 2 comments

Do you have a good example of how to add Persistent Volumes to a cluster? I've noticed that there is some data volume template in the definition, but don't really know how to configure it.

Cheers,

I've added

  dataVolumeClaimTemplate:
  - 
    metadata:
      name: test-redis-volume
    spec:
      accessModes: [ "ReadWriteOnce" ]
      resources:
        requests:
          storage: 10Gi

But just get back

spec.dataVolumeClaimTemplate in body must be of type object: "array"

which has me a bit confused. Any ideas?

Never mind. sorted it. Had to remove the -.