Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update section metadata.annotation when creating PVC using aws-efs as provisioner for storage class #10

Open
palmoreck opened this issue Aug 17, 2020 · 0 comments

Comments

@palmoreck
Copy link
Member

palmoreck commented Aug 17, 2020

In the past, the annotation volume.beta.kubernetes.io/storage-class was used instead of storageClassName attribute. This annotation is still working; however, it won't be supported in a future Kubernetes release

ref:

https://kubernetes.io/docs/concepts/storage/persistent-volumes/#persistentvolumeclaims

https://kubernetes.io/docs/concepts/storage/persistent-volumes/#class

So, when using aws-efs as provisioner for storage classes needs to update section: metadata.annotation when creating PVC:

kind: PersistentVolumeClaim
apiVersion: v1
metadata:
  name: efs
  namespace: kubeflow
  annotations:
    volume.beta.kubernetes.io/storage-class: "aws-efs"
spec:
  accessModes:
    - ReadWriteMany
  resources:
    requests:
      storage: 1Mi

Or substitute with another provisioner (or follow suggestions of eterna2 in chat of slack of kubeflow... i checked if i had this suggestions and didnt find them.... but were based in node selector) because

https://github.com/kubernetes-retired/external-storage/tree/master/aws/efs

looks will be retired...

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

No branches or pull requests

1 participant