<p>I'm just starting with Kubernetes on 2 node (master-minion) setup on 2 private cloud servers. I've installed it, did basic config and got it running some simple pods/services from the master to the minion.</p>
<p><strong>My question is:</strong></p>
<p><em>How can I use persistent storage with the pods when not using Google Cloud?</em></p>
<p>For my first tests I got a Ghost Blog pod running, but if i tear the pod the changes are lost. Tried adding volume to the pod, but can't actually find any documentation about how it is done when not on GC.</p>
<p>My try:</p>
<pre><code>apiVersion: v1beta1
id: ghost
kind: Pod
desiredState:
  manifest:
    version: v1beta1
    id: ghost
    containers:
      - name: ghost
        image: ghost
        volumeMounts:
          - name: ghost-persistent-storage
            mountPath: /var/lib/ghost
        ports:
          - hostPort: 8080
            containerPort: 2368
    volumes:
      - name: ghost-persistent-storage
        source:
          emptyDir: {}
</code></pre>
<p>Found this: <a href="http://amygdala.github.io/kubernetes/2015/01/13/k8s1.html" rel="nofollow noreferrer">Persistent Installation of MySQL and WordPress on Kubernetes</a></p>
<p>Can't figure it out how to add storage (NFS?) to my testing install.</p>

<p>In the new API (<a href="https://github.com/GoogleCloudPlatform/kubernetes/blob/master/pkg/api/v1beta3/types.go" rel="nofollow">v1beta3</a>), we've added many more volume types, including <a href="https://github.com/GoogleCloudPlatform/kubernetes/blob/master/pkg/api/v1beta3/types.go#L217" rel="nofollow">NFS volumes</a>. The NFS volume type assumes you already have an NFS server running somewhere to point the pod at. Give it a shot and let us know if you have any problems!</p>
