<p>I have a statefulset from mongo with 2 volumemounts:</p>
<pre><code>          volumeMounts:
            - name: mongo-persistent-storage
              mountPath: /data/db
            - name: mongo-config-storage
              mountPath: /data/configdb
</code></pre>
<p>I want to know how to add the second volume in volumeClaimTemplates:</p>
<pre><code>  volumeClaimTemplates:
  - metadata:
      name: mongo-persistent-storage
      annotations:
          volume.beta.kubernetes.io/storage-class: &quot;sc-infra&quot;
    spec:
      accessModes: [ &quot;ReadWriteOnce&quot; ]
      resources:
        requests:
          storage: 2Gi
</code></pre>

Thiago Oliveira
<p>Just append additional claim to your <code>volumeClaimTemplates</code>. Example:</p>
<pre><code>volumeClaimTemplates:
- metadata:
    name: mongo-persistent-storage
    annotations:
       volume.beta.kubernetes.io/storage-class: &quot;sc-infra&quot;
  spec:
    accessModes: [ &quot;ReadWriteOnce&quot; ]
    resources:
      requests:
        storage: 2Gi
- metadata:              # &lt;-- append another claim
    name: mongo-config-storage
  spec:
    storageClassName: sc-infra
    accessModes: [&quot;ReadWriteOnce&quot;]
    resources:
      requests:
        storage: 1Gi
</code></pre>
