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 - Наука
🔴 - To support my channel, I’d like to offer Mentorship/On-the-Job Support/Consulting - me@antonputra.com
This is super awesome!!! Anton, thank you for all you do.
Glad you enjoy it!
Excellent video for GKE with Terraform. Best in youtube
Thanks!!!
Brilliant content. Thank you, Anton
Thanks Serhii!
Anton amazing content as always...i subscribed you since you have under 1000 subscriber :)
Awesome, thank you!
thanks for the content!
My pleasure!
Thank you for the workload Identity part
Welcome Desmond
Thank you for the great content...
My pleasure!
Great video, very helpful!
Would love to see how to deploy these deployments with helm using the terraform.
Thanks!
Excelente!!! muchas gracias!
Thank you!
Superb Content👍👍
Thank you!
Bro thanks for the content
No problem 👍
great video, thank you!
do you happen to have a tutorial about GKE with Managed SSL Certificate?
thanks! unfortunately i don't
Clear in-life usage explanation, thank you!
Also, thank you for your position on Ukraine
Thanks!
thank you
welcome, i'll refresh it soon
@@AntonPutra 🙏
🤩
welcome :)
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 ?
Sorry for the late response, no you can have multiple load balancers. Will create soon tutorial for native gke load balancing with that addon
@@AntonPutra Thank you!
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 ??
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
start with admin =)
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!
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
@@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 :)
@@annedatema9391 any time
Hi, could you go into a bit more details on why you created two separate node pools?
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.
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?
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
⏱️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)
👉 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