How to create a Google Kubernetes Engine Cluster in GCP with Terraform

  Рет қаралды 8,315

CODE MENTAL

CODE MENTAL

Күн бұрын

Пікірлер: 27
@SchaibleZ
@SchaibleZ 2 жыл бұрын
this is seriously the best walk through that I've found!! Great work!
@CODEMENTAL
@CODEMENTAL 2 жыл бұрын
Thank you for the feedback!
@svsilence
@svsilence 3 жыл бұрын
really good explanation thank you, i can provision GKE without any problem
@Deevg-f9e
@Deevg-f9e 10 ай бұрын
Very informative. I tried to create a GKE auto mode cluster with a shared VPC network(private IP range), and assigned necessary IAM roles to the GKE hosted service project with (compute.engineadmin and container.admin roles). While provisioning the gke auto pilot cluster, getting this exception as " 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." Verified the logs for any key findings, but not helpful. Any thoughts/references on this error to troubleshoot ??
@CODEMENTAL
@CODEMENTAL 10 ай бұрын
Most likely an issue of connectivity between Control plane and nodes.
@slash93cr
@slash93cr 3 жыл бұрын
Thanks man this video helped me a lot!
@alexr6631
@alexr6631 2 жыл бұрын
Thanks man! I have only one error with custom network and subnetrwork name. Changing these values to "default" helps.
@CODEMENTAL
@CODEMENTAL 2 жыл бұрын
That error us because you are missing a vpc. So default will be pointing to the default vpc
@hemapatil3239
@hemapatil3239 3 жыл бұрын
Well Explained, thank you
@CODEMENTAL
@CODEMENTAL 3 жыл бұрын
Glad it was helpful!
@sonergezgen8704
@sonergezgen8704 Жыл бұрын
Very Nice content, Thank you !! but however, I am struggling with Terraform Cloud. How can I place my credentials config file securely into terraform cloud? Or any other secure ways to authenticate me against GKE from terraform cloud?
@CODEMENTAL
@CODEMENTAL Жыл бұрын
I am not familiar with tetraform cloud. But it really depends on where your tertraform will run from. If it is from GCP you can always assign a permission to the service account assigned to the VM running tertraform. Or if you run it from gke you can use workload identify
@matheussiqueira2027
@matheussiqueira2027 2 жыл бұрын
Congratulations on the video. Is the code published on github?
@yuiyep6500
@yuiyep6500 2 жыл бұрын
Thanks. really good VDO .
@jideolaarowolo1692
@jideolaarowolo1692 3 жыл бұрын
do you have the code for this project in any repository like github?
@CODEMENTAL
@CODEMENTAL 3 жыл бұрын
I will try to upload this on the weekend.
@namacool1
@namacool1 2 жыл бұрын
@@CODEMENTAL is there any update ?
@reparatur9862
@reparatur9862 2 жыл бұрын
Hi thank you for the Tutorial :). Can you help me please with this Erorr: Error: googleapi: Error 403: Required 'compute.zones.list' permission for 'projects/airflow-test-cluster', forbidden
@CODEMENTAL
@CODEMENTAL 2 жыл бұрын
Hello, you are missing a role from the user or service account that you are trying to use, which has the permission compute.zones.list. The problem you are describing looks similar to this stackoverflow problem: stackoverflow.com/questions/48232189/google-compute-engine-required-compute-zones-get-permission-error
@Furkan-gh2wl
@Furkan-gh2wl 2 жыл бұрын
Hi sir could you help me i am getting error
@CODEMENTAL
@CODEMENTAL 2 жыл бұрын
What error?
@Furkan-gh2wl
@Furkan-gh2wl 2 жыл бұрын
@@CODEMENTAL Error: Reference to undeclared input variable │ │ on main.tf line 5, in module "gke": │ 5: name = var.gcp_cluster_name │ │ An input variable with the name "gcp_cluster_name" has not been declared. Did you mean "gke_cluster_name"? ╵ ╷ │ Error: Reference to undeclared input variable │ │ on main.tf line 7, in module "gke": │ 7: regional = var.gke_regional │ │ An input variable with the name "gke_regional" has not been declared. Did you mean "gcp_regional"? i do and apply the same thing you did but i can't fix this error.
@Furkan-gh2wl
@Furkan-gh2wl 2 жыл бұрын
@@CODEMENTAL Error: Reference to undeclared resource │ │ on providers.tf line 9, in provider "kubernetes": │ 9: token = data.google_client_config.default.access_token │ │ A data resource "google_client_config" "default" has not been declared in the root module. ╵ and this error sir.thank you
@CODEMENTAL
@CODEMENTAL 2 жыл бұрын
You need to create the tfvars file, in the video I show how to do that. Also make sure you have downloaded the json with the credentials for gcp
@siddharthnaik6621
@siddharthnaik6621 7 ай бұрын
very nice video but can u pls provide code for the benefit of users . there are multiple requests . Thanks in advance !!
@arunthokade3158
@arunthokade3158 2 жыл бұрын
great work but provide the source code... make the code publicly available. if i want to copy it i cant.
JISOO - ‘꽃(FLOWER)’ M/V
3:05
BLACKPINK
Рет қаралды 137 МЛН
🎈🎈🎈😲 #tiktok #shorts
0:28
Byungari 병아리언니
Рет қаралды 4,5 МЛН
Every team from the Bracket Buster! Who ya got? 😏
0:53
FailArmy Shorts
Рет қаралды 13 МЛН
Creating and deleting GKE Clusters in GCP using Terraform
6:43
Kavitha Suresh Kumar
Рет қаралды 903
Creating an AWS EKS Cluster with Terraform
15:57
Power Cloud
Рет қаралды 8 М.
Compute with Google Kubernetes Engine
15:45
Google Cloud Tech
Рет қаралды 10 М.
Crazy fast Kubernetes Automation with Terraform
26:23
Christian Lempa
Рет қаралды 103 М.
Interacting with your Kubernetes workloads
15:08
Google Cloud Tech
Рет қаралды 15 М.
Create Kubernetes in GKE Step by Step | Google Kubernetes Engine | GCP Training 2023 | K21Academy
18:02
GKE Private Cluster Demo with Authorized Networks Enabled
10:55
Cloud Advocate
Рет қаралды 17 М.
JISOO - ‘꽃(FLOWER)’ M/V
3:05
BLACKPINK
Рет қаралды 137 МЛН