<p>I am deploying stolon via statefulset (default from stolon repo). 
I have define in statefulset config </p>

<pre><code>volumeClaimTemplates:     
    - metadata:    
        name: data   
      spec:   
        accessModes: ["ReadWriteOnce"]   
        storageClassName: stolon-local-storage  
        resources:
          requests:
            storage: 1Gi
</code></pre>

<p>and here is my storageClass:</p>

<pre><code>apiVersion: storage.k8s.io/v1   
kind: StorageClass   
metadata:   
  name: stolon-local-storage  
provisioner: kubernetes.io/no-provisioner  
volumeBindingMode: WaitForFirstConsumer
</code></pre>

<p>statefulset was created fine, but pod has error:
<strong>pod has unbound immediate PersistentVolumeClaims</strong></p>

<p>How can I resolve it?</p>

Donets
<blockquote>
  <p>pod has unbound immediate PersistentVolumeClaims</p>
</blockquote>

<p>In this case pvc could not connect to storageclass because it wasn't make as a <a href="https://kubernetes.io/docs/tasks/administer-cluster/change-default-storage-class/" rel="nofollow noreferrer">default</a>.</p>

<blockquote>
  <p>Depending on the installation method, your Kubernetes cluster may be deployed with an existing StorageClass that is marked as default. This default StorageClass is then used to dynamically provision storage for PersistentVolumeClaims that do not require any specific storage class. See <a href="https://kubernetes.io/docs/concepts/storage/persistent-volumes/#class-1" rel="nofollow noreferrer">PersistentVolumeClaim documentation</a> for details.</p>
</blockquote>

<p>Command which can be used to make your new created storageclass a default one.</p>

<pre><code>kubectl patch storageclass &lt;name_of_storageclass&gt; -p '{"metadata": {"annotations":{"storageclass.kubernetes.io/is-default-class":"true"}}}'
</code></pre>

<p>Then You can use <code>kubectl get storageclass</code> and it should look like this</p>

<pre><code>NAME                 PROVISIONER               AGE
stolon-local-storage   (default)   kubernetes.io/gce-pd      1d
</code></pre>
