Skip to content
This repository has been archived by the owner on Apr 29, 2019. It is now read-only.

Persistant Volumes are not created #272

Open
patvdleer opened this issue Dec 6, 2017 · 7 comments
Open

Persistant Volumes are not created #272

patvdleer opened this issue Dec 6, 2017 · 7 comments

Comments

@patvdleer
Copy link

I'm not sure this is related to this specific project but it look like the persistent volumes aren't created dynamically. I've added the following StorageClasses but once I deploy a pod with a persistent volume claim the volume isn't created.

USE_KUBE_UI=true MASTER_CPUS=1 NODE_MEM=4096 MASTER_MEM=2048 NODE_CPUS=1 NODES=5 vagrant up
kind: StorageClass
apiVersion: storage.k8s.io/v1beta1
metadata:
  name: standard
  annotations:
    storageclass.beta.kubernetes.io/is-default-class: "true"
  labels:
    kubernetes.io/cluster-service: "true"
    addonmanager.kubernetes.io/mode: "EnsureExists"
provisioner: kubernetes.io/gce-pd
parameters:
  type: pd-standard
---
kind: StorageClass
apiVersion: storage.k8s.io/v1
metadata:
  name: slow
  annotations:
    storageclass.beta.kubernetes.io/is-default-class: "false"
provisioner: kubernetes.io/gce-pd
parameters:
  type: pd-standard
  fsType: ext4
---
kind: StorageClass
apiVersion: storage.k8s.io/v1beta1
metadata:
  name: fast
  annotations:
    storageclass.beta.kubernetes.io/is-default-class: "false"
provisioner: kubernetes.io/gce-pd
parameters:
  type: pd-ssd
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: local-postgres
  namespace: local
spec:
  accessModes:
    - ReadWriteOnce
  resources:
    requests:
      storage: 5Gi
@pires
Copy link
Owner

pires commented Dec 6, 2017

provisioner: kubernetes.io/gce-pd

Did you use this repo to provision a cluster on top of GCP?

@patvdleer
Copy link
Author

No in vagrant locally, I completely overlooked the provisioner line, what should that be for a local env?

@pires
Copy link
Owner

pires commented Dec 6, 2017

Whatever the provisioner you want to use defines.

@patvdleer
Copy link
Author

I don't see why the PV's aren't created dynamically based on the PVC's...

@pires
Copy link
Owner

pires commented Dec 8, 2017

The provisioner you chose is not available.

@patvdleer
Copy link
Author

Maybe a stupid question but is there a way to see which ones are available or how can I install these, duckduckgo/google doesn't seem to be of any help

@pires
Copy link
Owner

pires commented Dec 8, 2017

Here's a list of known provisioners.

For local disk volumes, it's tricky - there's alpha support coming in Kubernetes 1.9. Perhaps, you'll be able to get the NFS provisioner to work.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants