Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with IpAllocationPolicy #593

Closed
morgante opened this issue Jul 8, 2020 · 2 comments · Fixed by #598
Closed

Issue with IpAllocationPolicy #593

morgante opened this issue Jul 8, 2020 · 2 comments · Fixed by #598

Comments

@morgante
Copy link
Contributor

morgante commented Jul 8, 2020

Tests are showing this:

       Error: googleapi: Error 400: DefaultMaxPodsConstraint can only be used if IpAllocationPolicy.UseIpAliases is true., badRequest
       
         on ../../../modules/beta-public-cluster/cluster.tf line 22, in resource "google_container_cluster" "primary":
         22: resource "google_container_cluster" "primary" {

Possibly related to hashicorp/terraform-provider-google#6744.

@SamwelOpiyo
Copy link

I am getting the same error with module git::https://github.com/terraform-google-modules/terraform-google-kubernetes-engine.git//modules/beta-public-cluster?ref=v9.4.0. It was working before for another cluster just a few days ago. Looks like I will need to downgrade the provider.

@SamwelOpiyo
Copy link

Adding the required providers block to the parent versions.tf file solved the issue:

terraform {
  ...

  required_providers {
    google-beta = ">= 3.23.0, <4.0.0, != 3.29.0"
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants