Create AWS EKS Cluster using Terraform: AWS EKS Kubernetes Tutorial - Part 2

SdĂ­let
VloĆŸit
  • čas pƙidĂĄn 2. 06. 2024
  • 🔮 - To support my channel, I’d like to offer Mentorship/On-the-Job Support/Consulting - me@antonputra.com
    👉 [Playlist] AWS EKS Kubernetes Tutorial: ‱ AWS EKS Kubernetes Tut...
    1. Create AWS VPC using Terraform
    2. Create AWS EKS Cluster using Terraform
    3. Add IAM User & IAM Role to AWS EKS
    4. Horizontal Pod Autoscaler (HPA) on AWS EKS
    5. Cluster Autoscaler Tutorial (EKS Pod Identities)
    6. AWS Load Balancer Controller Tutorial (TLS)
    7. Nginx Ingress Controller Tutorial (Cert-Manager & TLS)
    8. CSI Driver Tutorial (ReadWriteOnce)
    9. EFS CSI Driver Tutorial (ReadWriteMany)
    10. AWS Secrets Manager Tutorial (Env & Files)
    Based on the feedback, I’ll add the following sections (let me know if anything else is missing):
    - Autoscaling with Karpenter
    - Autoscaling with Keda
    - Private Ingress with Private DNS & VPN
    - Monitoring with Prometheus
    - EKS self managed group
    - EKS Fargate
    - EKS Pod Identities vs. EKS IRSA (oidc) vs. Node roles
    ▬▬▬▬▬ Experience & Location đŸ’Œ ▬▬▬▬▬
    â–ș I’m a Senior Software Engineer at Juniper Networks (12+ years of experience)
    â–ș Located in San Francisco Bay Area, CA (US citizen)
    ▬▬▬▬▬▬ Connect with me 👋 ▬▬▬▬▬▬
    â–ș LinkedIn: / anton-putra
    â–ș Twitter/X: / antonvputra
    â–ș GitHub: github.com/antonputra
    â–ș Email: me@antonputra.com
    ▬▬▬▬▬▬ Related videos đŸ‘šâ€đŸ« ▬▬▬▬▬▬
    👉 [Playlist] Kubernetes Tutorials: ‱ Kubernetes Tutorials
    👉 [Playlist] Terraform Tutorials: ‱ Terraform Tutorials fo...
    👉 [Playlist] Network Tutorials: ‱ Network Tutorials
    👉 [Playlist] Apache Kafka Tutorials: ‱ Apache Kafka Tutorials
    👉 [Playlist] Performance Benchmarks: ‱ Performance Benchmarks
    👉 [Playlist] Database Tutorials: ‱ Database Tutorials
    ▬▬▬▬▬▬▬ Timestamps ⏰ ▬▬▬▬▬▬▬
    0:00 Kubernetes Architecture
    3:45 EKS IAM Role Permissions
    5:59 EKS Nodes IAM Role Permissions
    7:46 Create EKS Cluster using Terraform
    11:19 Create EKS Nodes using Terraform
    16:45 EKS Overview in Console
    18:12 Connect to EKS
    ▬▬▬▬▬▬▬ Source Code 📚 ▬▬▬▬▬▬▬
    â–ș GitHub: github.com/antonputra/tutoria...
    #AWS #EKS #Kubernetes
  • Věda a technologie

Komentáƙe • 36

  • @AntonPutra
    @AntonPutra  Pƙed 13 dny +4

    🔮 - To support my channel, I’d like to offer Mentorship/On-the-Job Support/Consulting - me@antonputra.com

  • @MihaiLupoiu
    @MihaiLupoiu Pƙed 12 dny +2

    Thank you very much Anton for all the videos you make! I learned a lot from your content!

  • @raghuveer120
    @raghuveer120 Pƙed 13 dny +1

    Another great video. Keep sharing your knowledge.

  • @soufiane22v
    @soufiane22v Pƙed 13 dny +3

    Amazing stuff . This is the right moment l to deep dive into EKS .
    Thank you so much for the effort đŸ™đŸ»đŸ™đŸ»đŸ™đŸ»

    • @AntonPutra
      @AntonPutra  Pƙed 13 dny +1

      thanks!

    • @soufiane22v
      @soufiane22v Pƙed 11 dny

      is it possible to use openTofu instead of terraform ?

  • @MatthewKennedyUK
    @MatthewKennedyUK Pƙed 13 dny +1

    This is fantastic, I’m loving that you’ve broken this into multiple videos and are going into a more detail helping me to build my production EKS cluster.
    This is worth my subscription, keep up the good work.

  • @enjoy5941
    @enjoy5941 Pƙed 10 dny +1

    I didn't understand Kubernetes related technologies when I read about it on the internet, but your videos made it very easy to understand. I really appreciate it.

  • @mendoncaangelo
    @mendoncaangelo Pƙed 10 dny +2

    *Dude I see you are doing good....Keep up the good work :)....Dawai Dawai....Let the JUNIP people know you are doing well :)*

  • @GabrielPozo
    @GabrielPozo Pƙed 13 dny +1

    Great video!!! Now I am waiting for the next part. 😁

  • @arunreddy1436
    @arunreddy1436 Pƙed 13 dny +2

    masterpiece Sir, curiously waiting for the rest of EKS videos and thank you for the great job.

  • @AntonPutra
    @AntonPutra  Pƙed 13 dny +7

    Part 3 will be released in 2 days. Playlist - czcams.com/play/PLiMWaCMwGJXnKY6XmeifEpjIfkWRo9v2l.html&si=Ku0ay7zUEKgfcVcb
    1. Create AWS VPC using Terraform
    2. Create AWS EKS Cluster using Terraform
    3. Add IAM User & IAM Role to AWS EKS
    4. Horizontal Pod Autoscaler (HPA) on AWS EKS
    5. Cluster Autoscaler Tutorial (EKS Pod Identities)
    6. AWS Load Balancer Controller Tutorial (TLS)
    7. Nginx Ingress Controller Tutorial (Cert-Manager & TLS)
    8. CSI Driver Tutorial (ReadWriteOnce)
    9. EFS CSI Driver Tutorial (ReadWriteMany)
    10. AWS Secrets Manager Tutorial (Env & Files)
    Based on the feedback, I’ll add the following sections (let me know if anything else is missing):‹
    - Autoscaling with Karpenter
    - Autoscaling with Keda
    - Private Ingress with Private DNS & VPN
    - Monitoring with Prometheus
    - EKS self managed group
    - EKS Fargate
    - EKS Pod Identities vs. EKS IRSA (oidc) vs. Node roles

    • @dineshparva
      @dineshparva Pƙed 13 dny +1

      few more sections to add are cilium integration and vpc lattice and gateway api advantages

    • @AntonPutra
      @AntonPutra  Pƙed 13 dny

      @@dineshparva ok, added cilium, will take a look at the second one

    • @rafalkita884
      @rafalkita884 Pƙed 13 dny +1

      I would add cluster upgrades too. Every few months we have new EKS version. How would you do an upgrade when you have all these dependent cluster components deployed with terraform. Best practices, zero downtime etc. when going from one EKS version to the next one.

    • @AntonPutra
      @AntonPutra  Pƙed 12 dny +1

      @@rafalkita884 thanks, it heavily depends on the Kubernetes version itself not EKS. For example K8s can deprecated some APIs for example old ingress beta v1 and you would need to upgrade all your yaml files. So it's very hard to come up with general recommendation.

  • @evgenylikhonosov572
    @evgenylikhonosov572 Pƙed 10 dny +1

    Thank you, great tutorial!

  • @ZergStylexDD
    @ZergStylexDD Pƙed 13 dny +1

    Great content!

  • @RAHUL841991
    @RAHUL841991 Pƙed 10 dny +1

    Amazing Videos!

  • @ZergStylexDD
    @ZergStylexDD Pƙed 13 dny +1

    In this video you create all resources using direct terraform resources. But we also have publicly available modules from Anton Babenko to create EKS and simplify the terraform layer, in my opinion. What do you think is better to use in production cases? Is it worth using such public terraform modules or is it better to create all the resources yourself?

    • @AntonPutra
      @AntonPutra  Pƙed 13 dny +4

      I respect him, i just generally don't like using open source modules. For example that open source module still uses auth configmap to manage users. It's very easy for them to start using API but it will break your infra and you would have to keep using old versions until you create new eks clusters (just from my personal experience) Modules are great for consulting and temporary envs, when you don't need to maintain clusters for over the year. I know a lot of copy pasting but when you have 20+ clusters, update module can in all envs can take months or even year :)

  • @dineshparva
    @dineshparva Pƙed 13 dny +1

    Thanks for the video could you explain in layman terms what exactly is the oidc provider and its role in eks does it act like a authentication broker between iam and k8s in aws?

    • @AntonPutra
      @AntonPutra  Pƙed 13 dny

      oidc provider allows you to establish relationship between AWS IAM and Kubernetes RBAC.
      1. you create IAM role and define trust relationship with Kubernetes service account
      2. you create Kubernetes service account and LINK IAM role with Kubernetes service account
      Finally you can assign IAM permissions to Kubernetes pods. BUT you no longer need it at all, new better way is pod identities, video comparing all approaches coming in few days

  • @spasham74
    @spasham74 Pƙed 11 dny +1

    You had created the eks cluster in the past what is that we can expect in this new series? How is it different from the previous EKS cluster you have created?

    • @AntonPutra
      @AntonPutra  Pƙed 10 dny +1

      There have been few new developments on EKS side.
      1. Kubernetes auth configmap is deprecated and recommended approach is to use new EKS API to add new users to the cluster
      2. New way to grant permissions to application (we no longer use IAM OIDC provider and IAM roles for service accounts, instead we use Pod identities)
      3. Some other small features in certain controllers like aws load balancer controller etc

    • @spasham74
      @spasham74 Pƙed 10 dny

      @@AntonPutra I really appreciate what you doing for the community