Amazon EFS CSI Operations: Difference between revisions
Jump to navigation
Jump to search
Line 39: | Line 39: | ||
<syntaxhighlight lang='bash'> | <syntaxhighlight lang='bash'> | ||
apply -f ./storageclass.yaml | apply -f ./storageclass.yaml | ||
storageclass.storage.k8s.io/efs-sc created | |||
kubectl get sc | kubectl get sc | ||
NAME PROVISIONER AGE | |||
[...] | |||
efs-sc efs.csi.aws.com 16s | |||
</syntaxhighlight> | </syntaxhighlight> |
Revision as of 17:21, 20 August 2020
External
Internal
Deploy the Amazon EFS CSI Driver
Ensure you are in the right context, with sufficient permissions, then:
kubectl apply -k "github.com/kubernetes-sigs/aws-efs-csi-driver/deploy/kubernetes/overlays/stable/ecr/?ref=release-1.0"
This deploys a CSIDriver and a DaemonSet resources:
kubectl get csidriver
NAME CREATED AT
efs.csi.aws.com 2020-06-24T04:29:45Z
kubectl get -n kube-system daemonset
NAME DESIRED CURRENT READY UP-TO-DATE AVAILABLE NODE SELECTOR AGE
efs-csi-node 3 3 3 3 3 kubernetes.io/arch=amd64,kubernetes.io/os=linux 57d
Deploy the EFS Storage Class
kind: StorageClass
apiVersion: storage.k8s.io/v1
metadata:
name: efs-sc
provisioner: efs.csi.aws.com
apply -f ./storageclass.yaml
storageclass.storage.k8s.io/efs-sc created
kubectl get sc
NAME PROVISIONER AGE
[...]
efs-sc efs.csi.aws.com 16s