Couchbase operator dosen't make volume

Hi Now i’m testing couchbase-operator and couchbase-cluster with helm.

I want couchbase use volume (pvc). So i set value.yaml for couchbase-cluster like below

...                                                                                                                                           
  volumeClaimTemplates:                                                                                                                                                                              
    - metadata:                                                                                     
        name: couchbase                                                                                                                                                                              
      spec:                                                                                                                                                                                          
        storageClassName: "ceph-rbd"                                                                                                                                                                 
        resources:                                                                                                                                                                                   
          requests:                                                                                                                                                                                  
            storage: 1Gi  
...

Storage class name is ceph-rbd. I think everything is Ok.
But couchbase-operator dosen’t make volume for each couchbase.

Is this bug?? Or i’m missing some options for volume?? thanks.

In your sever configuration do you also specify which template to use? For example:

spec:
  servers:
    - size: 3
      name: data
      services:
        - data
        - index
      pod:
        volumeMounts:
          default: couchbase

Oh! thanks.
I apply volumeMounts options and it works. Thanks.

1 Like