I created a StorageClass as defined here: kind: StorageClass apiVersion: storage.k8s.io/v1beta1 metadata: name: standard namespace: default annotations: storageclass.beta.kubernetes.io/is-default-class: "true" provisioner: kubernetes.io/aws-ebs parameters: type: gp2
Then I created a PersistentVolumeClaim as defined here: kind: PersistentVolumeClaim apiVersion: v1 metadata: name: pvc-8g namespace: default annotations: volume.beta.kubernetes.io/storage-class: "standard" spec: accessModes: - ReadWriteOnce resources: requests: storage: 8Gi selector: matchLabels: name: jenkins-home Unfortunately, when I try to use this for dynamic provisioning, the claim remains stuck in "Pending" state, and it keeps repeatedly creating and deleting an EBS volume in AWS. I have successfully tried static provisioning using the same configs as above (along with a PersistentVolume config), so I am not sure what I am doing wrong for dynamic provisioning. Thanks in advance for any help! -- You received this message because you are subscribed to the Google Groups "Kubernetes user discussion and Q&A" group. To unsubscribe from this group and stop receiving emails from it, send an email to kubernetes-users+unsubscr...@googlegroups.com. To post to this group, send email to kubernetes-users@googlegroups.com. Visit this group at https://groups.google.com/group/kubernetes-users. For more options, visit https://groups.google.com/d/optout.