Skip to content

EKS Pod Identity: Easily Attach IAM Roles to K8s pods 🎑

Notifications You must be signed in to change notification settings

assafdori/pod-identity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

7 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

codesnap

Overview: EKS Pod Identity: Easily Attach IAM Roles to K8s pods 🎑

Objective πŸ… : Utilize EKS Pod Identity to easily attach IAM roles to Kubernetes pods.

Highlights πŸ† : EKS Pod Identity allows to assign IAM roles to pods without annotating the deployment pod spec.

Technologies πŸ› οΈ :

  • Python
  • boto3
  • Docker
  • Kubernetes
  • EKS
  • IAM Services (roles, policies, pod-identity-attachment)
  • Terraform

Steps πŸ“ :

  1. Create a Python application that uploads a file to an S3 bucket.
  2. Dockerize the application.
  3. Create a Kubernetes deployment for the Python application.
  4. Define all infrastructure as code (IaC) Terraform such as VPC, EKS, S3, IAM, Node Group, etc.
  5. Install Pod Identity add-on on the EKS cluster.
  6. Define all the required IAM services (role, policy, pod-identity-attachment) for the Kubernetes deployment.

Structure πŸ—οΈ :

  • infrastructure/: Terraform code for creating the EKS cluster, S3 bucket, IAM services, etc.
  • kubernetes/: Kubernetes deployment for the Python application & service account.
  • python-app/: Python application that uploads a file to an S3 bucket.

About

EKS Pod Identity: Easily Attach IAM Roles to K8s pods 🎑

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published