title: How to run Dgraph on bare-metal Kubernetes cluster
body: <p>I am trying to setup Dgraph in <a href="https://dgraph.io/docs/deploy/kubernetes/#ha-cluster-setup-using-kubernetes" rel="nofollow noreferrer">HA Cluster</a> but it won't deploy if no <a href="https://kubernetes.io/docs/concepts/storage/volumes/" rel="nofollow noreferrer">volumes</a> are present.</p>
  <p>When directly applying <a href="https://github.com/dgraph-io/dgraph/blob/master/contrib/config/kubernetes/dgraph-ha/dgraph-ha.yaml" rel="nofollow noreferrer">the provided config</a> on a bare-metal cluster won't work.</p>
  <pre><code>$ kubectl get pod --namespace dgraph
  dgraph-alpha-0                      0/1     Pending     0          112s
  dgraph-ratel-7459974489-ggnql       1/1     Running     0          112s
  dgraph-zero-0                       0/1     Pending     0          112s
  
  
  $ kubectl describe pod/dgraph-alpha-0 --namespace dgraph
  Events:
    Type     Reason            Age        From               Message
    ----     ------            ----       ----               -------
    Warning  FailedScheduling  &lt;unknown&gt;  default-scheduler  error while running &quot;VolumeBinding&quot; filter plugin for pod &quot;dgraph-alpha-0&quot;: pod has unbound immediate PersistentVolumeClaims
    Warning  FailedScheduling  &lt;unknown&gt;  default-scheduler  error while running &quot;VolumeBinding&quot; filter plugin for pod &quot;dgraph-alpha-0&quot;: pod has unbound immediate PersistentVolumeClaims
  </code></pre>
  <p>Anyone else has this problem? I've been experiencing this issue for several days now and can not find a way around this.
  How can I have Dgraph use cluster's local storage?</p>
  <p>Thanks</p>