How to Create GKE Cluster Using TERRAFORM? (Google Kubernetes Engine & Workload Identity)

Поделиться
HTML-код
  • Опубликовано: 7 янв 2025

Комментарии • 55

  • @AntonPutra
    @AntonPutra  Год назад +1

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

  • @AntonPutra
    @AntonPutra  2 года назад +2

    ⏱️TIMESTAMPS⏱️
    0:00 Intro
    0:35 Setup Terraform GCP Provider
    1:27 Configure Terraform Backend GCS
    2:37 Create GCP VPC Using Terraform
    3:32 Create GCP Subnets Using Terraform
    4:59 Create GCP Cloud Router Using Terraform
    5:50 Create GCP Cloud NAT Using Terraform
    6:35 Create GCP Firewall Using Terraform
    7:05 Create GKE Cluster Using Terraform
    10:55 Create GKE Node Pools Using Terraform
    12:54 Apply Terraform
    15:05 GKE Autoscaling Demo (Example 1)
    16:16 GKE Workload Identity Tutorial (Example 2)
    19:32 Deploy Nginx Ingress Controller on GKE (Example 3)

  • @arshsingal65
    @arshsingal65 Год назад +2

    Excellent video for GKE with Terraform. Best in youtube

  • @AntonPutra
    @AntonPutra  Год назад +1

    👉 How to Manage Secrets in Terraform - ruclips.net/video/3N0tGKwvBdA/видео.html
    👉 Terraform Tips & Tricks - ruclips.net/video/7S94oUTy2z4/видео.html
    👉 ArgoCD Tutorial - ruclips.net/video/zGndgdGa1Tc/видео.html

  • @davidessien3617
    @davidessien3617 2 года назад +2

    This is super awesome!!! Anton, thank you for all you do.

  • @dor961
    @dor961 2 года назад +2

    Great video, very helpful!
    Would love to see how to deploy these deployments with helm using the terraform.

  • @DesmondMuyukha
    @DesmondMuyukha Год назад +1

    Thank you for the workload Identity part

  • @piyushdarji7926
    @piyushdarji7926 2 года назад +1

    Anton amazing content as always...i subscribed you since you have under 1000 subscriber :)

  • @ukr_devops
    @ukr_devops Год назад +1

    Brilliant content. Thank you, Anton

  • @qqwwqew
    @qqwwqew 2 года назад +2

    Clear in-life usage explanation, thank you!
    Also, thank you for your position on Ukraine

  • @Deevg-f9e
    @Deevg-f9e 10 месяцев назад

    Very informative. I tried to create a GKE Auto Pilot cluster with a shared VPC private network through terraform, assigned necessary GKE service account permissions, and make sure the control plane, node, ranges IP range and the location are aligned correctly as per the GCP GKE documentation. But stuck with this exception again and again, 'Error: Error waiting for creating GKE cluster: All cluster resources were brought up, but: only 0 nodes out of 1 have registered; cluster may be unhealthy.' Pls share if there is any suggestions to troubleshoot this error ??

  • @lalitkharat4640
    @lalitkharat4640 Год назад +1

    Superb Content👍👍

  • @annedatema9391
    @annedatema9391 Год назад +1

    Hi Anton, thank you for your very helpful video!
    Question: near the beginning you say "...create a VPC from scratch with Terraform, or you can plugin values from existing network". Is this a way to get Terraform control existing networks as well? And can you do the same with all/most infrastructure? I am trying to understand how one can get existing infra under control of Terraform. Greetings from Hollland!

    • @AntonPutra
      @AntonPutra  Год назад +1

      You have 3 options.
      1. Create infra (VPC) from scratch using Terraform
      2. Import existing infra (VPC) with "terraform import ..." command. In that way the code will be the same
      3. You can use "data" terraform resources to reference exiting infrastructure (such as VPC) and use "data.aws_vpc.main.id" instead of "resource.aws_vpc.main.id" when you need to reference in another resource.
      My advise would be to Import existing infra to Terraform or create from scratch

    • @annedatema9391
      @annedatema9391 Год назад

      @@AntonPutraThank you! I think beginning from scratch is best method for me. Because it is an easier learning curve than already trying to import into TF. Again, thank you for your help :)

    • @AntonPutra
      @AntonPutra  Год назад

      @@annedatema9391 any time

  • @ShaiCohen-n3x
    @ShaiCohen-n3x 11 месяцев назад

    great video, thank you!
    do you happen to have a tutorial about GKE with Managed SSL Certificate?

    • @AntonPutra
      @AntonPutra  11 месяцев назад

      thanks! unfortunately i don't

  • @fabiandirico7260
    @fabiandirico7260 Год назад +1

    Excelente!!! muchas gracias!

  • @Quadman4853
    @Quadman4853 2 года назад +1

    Thank you so much for your video, it really helped me with my infra. I have one question - you disabled http load balancing addon for cluster, but for google managed ssl certificate I need to enable it. Now I have probably two load balancers - one I just enabled and second one is nginx ingress. Do you see any potential problem with this setup ?

    • @AntonPutra
      @AntonPutra  2 года назад

      Sorry for the late response, no you can have multiple load balancers. Will create soon tutorial for native gke load balancing with that addon

    • @Quadman4853
      @Quadman4853 2 года назад

      @@AntonPutra Thank you!

  • @neppalivasanthalakshmi8407
    @neppalivasanthalakshmi8407 Год назад

    Hi,
    Thanks for the video I am very new to terraform and gke.
    Could you please tell what are the roles and permissions required to create vpc subnetworks etc.
    Thank you

  • @joaoferreira3179
    @joaoferreira3179 Год назад

    Hi, could you go into a bit more details on why you created two separate node pools?

    • @AntonPutra
      @AntonPutra  Год назад +1

      one of them spot (can be terminated at any time by aws but cheaper) another one regular. If you app can resist restarts you can use spot or mixed group.

  • @technologytheoryhandson863
    @technologytheoryhandson863 2 года назад +1

    Thank you for the great content...

  • @naniviaa
    @naniviaa 2 года назад +1

    thanks for the content!

  • @sigma-yn3qd
    @sigma-yn3qd 2 года назад +1

    Bro thanks for the content

  • @てん-n5y4e
    @てん-n5y4e Год назад

    I apply ingress. but
    0/2 nodes are available: 1 Insufficient cpu, 1 node(s) had untolerated taint {instance_type: spot}. preemption: 0/2 nodes are available: 1 No preemption victims found for incoming pod, 1 Preemption is not helpful for scheduling.
    how to fix it?

    • @AntonPutra
      @AntonPutra  Год назад

      Make sure that this node group does not have taints and increase the instance family - github.com/antonputra/tutorials/blob/main/lessons/108/terraform/8-node-pools.tf#L19

  • @diegonayalazo
    @diegonayalazo 2 месяца назад +1

    Thanks

  • @eslamali6516
    @eslamali6516 7 месяцев назад +1

    thank you

    • @AntonPutra
      @AntonPutra  7 месяцев назад +1

      welcome, i'll refresh it soon

    • @eslamali6516
      @eslamali6516 7 месяцев назад

      @@AntonPutra 🙏

  • @mikhailsh8916
    @mikhailsh8916 2 года назад +1

    🤩

  • @GrayArno
    @GrayArno 4 месяца назад

    Walker Steven Martinez Daniel Brown Michelle

  • @GrayArno
    @GrayArno 4 месяца назад

    Davis Richard Miller Larry Wilson Robert