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

Поделиться
HTML-код
  • Опубликовано: 4 авг 2024
  • 🔴 - To support my channel, I’d like to offer Mentorship/On-the-Job Support/Consulting - me@antonputra.com
    ▬▬▬▬▬ 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 Intro
    0:35 Setup Terraform GCP Provider
    1:27 Configure Terraform GCS Backend
    2:37 Create VPC in GCP using Terraform
    3:32 Create Subnet in GCP using Terraform
    4:59 Create Cloud Router in GCP using Terraform
    5:50 Create Cloud NAT in GCP using Terraform
    6:35 Create Firewall in GCP 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)
    =========
    Source Code
    📚 - antonputra.com/google/create-...
    #GKE #GCP #DevOps
  • НаукаНаука

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

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

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

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

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

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

    Excellent video for GKE with Terraform. Best in youtube

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

    Brilliant content. Thank you, Anton

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

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

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

    thanks for the content!

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

    Thank you for the workload Identity part

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

    Thank you for the great content...

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

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

  • @fabiandirico7260
    @fabiandirico7260 11 месяцев назад +1

    Excelente!!! muchas gracias!

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

    Superb Content👍👍

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

    Bro thanks for the content

  • @user-yl2uz8rx1h
    @user-yl2uz8rx1h 6 месяцев назад

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

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

      thanks! unfortunately i don't

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

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

  • @eslamali6516
    @eslamali6516 Месяц назад +1

    thank you

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

    🤩

  • @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!

  • @user-tu7yt6fn2z
    @user-tu7yt6fn2z 5 месяцев назад

    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 ??

  • @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

  • @annedatema9391
    @annedatema9391 10 месяцев назад +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  10 месяцев назад +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 10 месяцев назад

      @@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  10 месяцев назад

      @@annedatema9391 any time

  • @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.

  • @user-pg2wk6ry1m
    @user-pg2wk6ry1m Год назад

    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

  • @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)

  • @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