<p>I have applied the following pvc yaml.</p>
<pre><code>apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: ebs-claim
spec:
  accessModes:
    - ReadWriteOnce
  storageClassName: ebs-sc
  resources:
    requests:
      storage: 4Gi


</code></pre>
<p>I now want my statefulset to use the PVC I have created. Instead, it is creating new PVC of a different storageclass.</p>
<pre><code>apiVersion: v1
kind: statefulset
    metadata:
      name: example
    spec:
        # Name for the service object created by the operator
      serviceName: mongodb-service 
      selector: {}
        # Specifies a size for the data volume different from the default 10Gi
      volumeClaimTemplates:
        - metadata:
            name: ebs-claim
      template:
        spec:
          nodeSelector:
            eks.amazonaws.com/nodegroup: managed-ng-private-1
</code></pre>
<p>How can I get my statefulset to use existing PVCs instead of creating new ones?</p>

<p>Specify it like normal in the <code>volumes</code> section of the pod spec template. But you won't get the special behavior of creating a new PVC for each replica since that requires creating new ones.</p>
