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

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

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

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

    this is seriously the best walk through that I've found!! Great work!

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

      Thank you for the feedback!

  • @svsilence
    @svsilence 3 года назад +1

    really good explanation thank you, i can provision GKE without any problem

  • @slash93cr
    @slash93cr 3 года назад +1

    Thanks man this video helped me a lot!

  • @hemapatil3239
    @hemapatil3239 3 года назад +1

    Well Explained, thank you

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

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

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

    Thanks. really good VDO .

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

    Congratulations on the video. Is the code published on github?

  • @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  Год назад +1

      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

  • @jideolaarowolo1692
    @jideolaarowolo1692 3 года назад

    do you have the code for this project in any repository like github?

    • @CODEMENTAL
      @CODEMENTAL  3 года назад +4

      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

  • @siddharthnaik6621
    @siddharthnaik6621 8 месяцев назад

    very nice video but can u pls provide code for the benefit of users . there are multiple requests . Thanks in advance !!

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

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

    great work but provide the source code... make the code publicly available. if i want to copy it i cant.