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