Git Product home page Git Product logo

eks_with_efs's Introduction

eks_with_efs

EKS with EFS

=============================================================

  1. create EKS cluster

  2. create EFS volume with same vpc Get important elements after creating EFS File System ID: fs-0a0ed8d3600932ba1

  3. Install efs.csi.aws.com driver kubectl apply -k "github.com/kubernetes-sigs/aws-efs-csi-driver/deploy/kubernetes/overlays/stable/?ref=master"

4.Create EFS provisioner cat efs-provisioner.yaml kind: StorageClass apiVersion: storage.k8s.io/v1 metadata: name: efs-sc provisioner: efs.csi.aws.com

apiVersion: v1 kind: PersistentVolume metadata: name: efs-pv1 spec: capacity: storage: 100Mi volumeMode: Filesystem accessModes: - ReadWriteMany persistentVolumeReclaimPolicy: Retain storageClassName: efs-sc mountOptions: - tls csi: driver: efs.csi.aws.com volumeHandle: fs-0a0ed8d3600932ba1

apiVersion: v1 kind: PersistentVolumeClaim metadata: name: efs-claim1 spec: accessModes: - ReadWriteMany storageClassName: efs-sc resources: requests: storage: 100Mi

apiVersion: v1 kind: Pod metadata: name: efs-app spec: containers:

  • name: app image: centos command: ["/bin/sh"] args: ["-c", "while true; do echo $(date -u) >> /data-dir1/out.txt; sleep 5; done"] volumeMounts:
    • name: efs-volume-1 mountPath: /data-dir1 volumes:
  • name: efs-volume-1 persistentVolumeClaim: claimName: efs-claim1
  1. Add the IAM policies for EFS role access for volume

eks_with_efs's People

Contributors

rohitkhot1026 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.