Giter Club home page Giter Club logo

Comments (8)

czka avatar czka commented on July 17, 2024 1

#50 works for me.

from terraform-google-kubernetes-engine.

morgante avatar morgante commented on July 17, 2024

I don't think it's supported to have a regional cluster with a single zone. For that case, I think you would want to create a zonal cluster, as per this example: https://github.com/terraform-google-modules/terraform-google-kubernetes-engine/tree/master/examples/simple_zonal

from terraform-google-kubernetes-engine.

czka avatar czka commented on July 17, 2024

@morgante Why do you think I want to have a regional cluster? I've set regional = false.

from terraform-google-kubernetes-engine.

bzub avatar bzub commented on July 17, 2024

I'm hitting this issue as well, although it only started happening after a terraform destroy in which the previously created cluster was deleted already outside of terraform (gcloud cli). So there may be some resources left over in my GCP project that get picked up when terraform refreshes. terraform show is empty so I don't think it's a state issue on the terraform side.

from terraform-google-kubernetes-engine.

bzub avatar bzub commented on July 17, 2024

Now I'm seeing this issue on a brand new GCP project (created with project-factory module).

from terraform-google-kubernetes-engine.

bzub avatar bzub commented on July 17, 2024

This interpolation basically looks for a non-existent list element at index 1 when var.zones has a length of only one.

additional_zones = ["${slice(var.zones,1,length(var.zones))}"]

I'm assuming that's part of the issue, since this local variable ends up with no zones instead of the singular zone provided to the module's zone variable.

cluster_type_output_zonal_zones = "${concat(google_container_cluster.zonal_primary.*.additional_zones, list(list()))}"

from terraform-google-kubernetes-engine.

morgante avatar morgante commented on July 17, 2024

Thanks for identifying the issue - that does indeed look like what needs to be fixed.

from terraform-google-kubernetes-engine.

ogreface avatar ogreface commented on July 17, 2024

Potential fix in: #50

from terraform-google-kubernetes-engine.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.