Skip to content

AWS Efs provisioner for dynamic storage to be used in eks cluster

Notifications You must be signed in to change notification settings

ffoysal/efs-provisioner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

AWS EFS provisioner

This will help to creat

  • eks cluster using eksctl
  • deploy aws-efs provisioner using kustomize
  • create a storage class name aws-efs into the cluster

Prerequisites:

install following components before you start

All In one

The following will create eks cluster named mycluster in the aws region us-east-1. allso deploy efs provisioner and create a storage class named aws-efs

./setup-eks-with-sc.sh mycluster us-east-1

The following command will delte the eks cluster

./delete-cluster mycluster us-east-1

Just create EFS provisioner and storage class

if you have already a cluster in eks, you should be able to create efs provisioner and storage class using kustomize by referencing to the resources directory

follow this link to setup EFS file system first using EFS Creation

Make a place to work

DEMO_HOME=$(mktemp -d)

create a patch file

cat <<EOF >$DEMO_HOME/patch.yaml
apiVersion: v1
kind: ConfigMap
metadata:
  name: not-important
data:
  fileSystemId: EFS_FILE_SYSTEM_ID_BEEN_CREATED_ABOVE
  efsRegion: AWS_REGION
EOF

define a kustomization file that specifies your patch.

cat <<EOF >$DEMO_HOME/kustomization.yaml
resources:
- github.com/ffoysal/efs-provisioner//resources
patches:
- path: patch.yaml
  target:
    kind: ConfigMap
    name: efs-provisioner-configs
EOF

then run kustomize

kustomize build $DEMO_HOME | kubectl apply -f -

About

AWS Efs provisioner for dynamic storage to be used in eks cluster

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages