title: Dynamic Persistent volume in Kubernetes
body: <p>I have a kubernetes cluster on 1.4.6 and trying to configure the dynamic persistence volume based on glusterfs. I have created the glusterfs cluster and have the volume created as well.</p>
  
  <p>gluster volume info</p>
  
  <pre><code>Volume Name: volume1
  Type: Replicate
  Volume ID: xxxxxxxxx
  Status: Started
  Number of Bricks: 1 x 2 = 2
  Transport-type: tcp
  Bricks:
  Brick1: &lt;host-1&gt;:/gluster-storage
  Brick2: &lt;host-2&gt;:/gluster-storage
  Options Reconfigured:
  performance.readdir-ahead: on
  </code></pre>
  
  <p>From the kubernetes side, a storageclass is created with the storageclass.beta.kubernetes.io/is-default-class as "true" and the provisioner is set as kubernetes.io/glusterfs. With this configuration, when the PVC is created, its pending and never gets bound. While checking the PV, there is no PV created using the gluster-storage driver mentioned in the storageclass.</p>
  
  <ul>
  <li>Is the dynamic provisioning using glusterFs is available for 1.4.6</li>
  <li>Is there any specific configuration needs to be enabled when kube controller
  is started.</li>
  </ul>
  
  <p>Following are the yml files for reference.</p>
  
  <pre><code>kind: StorageClass
  apiVersion: storage.k8s.io/v1beta1
  metadata:
    name: slow
    annotations:
      storageclass.beta.kubernetes.io/is-default-class: "true"
  provisioner: kubernetes.io/glusterfs
  parameters:
    endpoint: "glusterfs-cluster"
    resturl: "&lt;Host IP for Gluster&gt;"
    restauthenabled: "false"
    restuser: ""
    restuserkey: ""
  
  apiVersion: v1
  kind: PersistentVolumeClaim
  metadata:
   name: pvc-claim
   annotations:
     volume.alpha.kubernetes.io/storage-class: default
  spec:
   accessModes:
    - ReadWriteMany
   resources:
     requests:
       storage: 1Gi
  </code></pre>
  
  <p>Has anybody done the dynamic provisioning using the glusterfs.</p>