kubernetes-vagrant-coreos-cluster
kubernetes-vagrant-coreos-cluster copied to clipboard
Persistant Volumes are not created
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
provisioner: kubernetes.io/gce-pd
Did you use this repo to provision a cluster on top of GCP?
No in vagrant locally, I completely overlooked the provisioner line, what should that be for a local env?
Whatever the provisioner you want to use defines.
I don't see why the PV's aren't created dynamically based on the PVC's...
The provisioner you chose is not available.
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
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.