Joshuaariolu commented on issue #742:
URL: https://github.com/apache/solr-operator/issues/742#issuecomment-2578610388

   Thanks again for your response
   dataStorage:
     type: "persistent"
     capacity: "20Gi"
     persistent:
       reclaimPolicy: "Delete"
       pvc:
         name: data
         labels: {}
         annotations: {}
         storageClassName: "Test-storageclass"
         
        when I change the spec in the values.yaml to the above, without any 
custom volume definition I get the following error:
        create Pod solr-solrcloud-2 in StatefulSet solr-solrcloud failed error: 
Pod "solr-solrcloud-2" is invalid: [spec.containers[0].volumeMounts[0].name: 
Not found: "data", spec.initContainers[0].volumeMounts[1].name: Not found: 
"data"]
   
   when I add the custom volume below it creates a pvc for each of the pods in 
the stateful set but creates multiple mount points. 
   Mounts:
         /data from data (rw)
         /var/solr/data from data (rw)
     
   volumes: 
        - name: data
          defaultContainerMount:
            name: data
            mountPath: "/data"
          source:
            persistentVolumeClaim:
              claimName: test-pvc
       
     My confusion is on how exactly is the values.yaml supposed to be 
structured in order to mount a persistent volume to the pods correctly? it 
seems like there is a predefined mount and volume present.
   Also I noticed that the volume I mounted in solr also creates a mount on the 
zookeeper pods.
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to