https://github.com/ffoysal/efs-provisioner
AWS Efs provisioner for dynamic storage to be used in eks cluster
https://github.com/ffoysal/efs-provisioner
aws-efs efs eks
Last synced: about 1 year ago
JSON representation
AWS Efs provisioner for dynamic storage to be used in eks cluster
- Host: GitHub
- URL: https://github.com/ffoysal/efs-provisioner
- Owner: ffoysal
- Created: 2020-05-11T05:37:06.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-05-12T04:43:54.000Z (about 6 years ago)
- Last Synced: 2025-01-30T07:43:47.749Z (over 1 year ago)
- Topics: aws-efs, efs, eks
- Language: Shell
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# AWS EFS provisioner
This will help to creat
- eks cluster using [eksctl](eksctl.io)
- deploy aws-efs provisioner using [kustomize](kustomize.io)
- create a storage class name aws-efs into the cluster
## Prerequisites:
install following components before you start
- [eksctl](eksctl.io)
- [kustomize](kustomize.io)
- [jq](https://stedolan.github.io/jq/)
- [yq](https://mikefarah.gitbook.io/yq/)
- [aws cli](https://aws.amazon.com/cli/)
## 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`
```console
./setup-eks-with-sc.sh mycluster us-east-1
```
The following command will delte the eks cluster
```console
./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](./resources) directory
follow this link to setup **EFS** file system first using [EFS Creation](https://github.com/kubernetes-incubator/external-storage/tree/master/aws/efs#prerequisites)
Make a place to work
```console
DEMO_HOME=$(mktemp -d)
```
create a patch file
```console
cat <$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.
```console
cat <$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
```console
kustomize build $DEMO_HOME | kubectl apply -f -
```