-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
GKE node auto-provisioning doesn't work in versions higher than v4.43.0-v4.63.1+ #14465
GKE node auto-provisioning doesn't work in versions higher than v4.43.0-v4.63.1+ #14465
Comments
@stevekoskie by trying below deployment, I don't see the difference on clusters of between v4.43.0 and v4.63.1 which are on your above config. In both cases, the pod seems working fine.
What did you do for step 2 and 7? Can you share the details? How was it to |
@edwardmedia apiVersion: v1
kind: Pod
metadata:
name: ubuntu
labels:
app: ubuntu
spec:
containers:
- name: ubuntu
image: ubuntu:latest
command: ["/bin/sleep", "3650d"]
imagePullPolicy: IfNotPresent
resources:
requests:
cpu: "16"
restartPolicy: Always Save that file, and then do a |
@stevekoskie thanks for the yaml file. I am able to repro the issue now. To temporally workaround, you may set auto_repair to true.
"autoscaling": { By omitting |
Hello @edwardmedia thank you for your efforts. resource "google_container_cluster" "primary" {
name = "my-gke-cluster-test"
location = "us-central1"
remove_default_node_pool = true
initial_node_count = 1
cluster_autoscaling {
enabled = true
resource_limits {
resource_type = "cpu"
minimum = 6
maximum = 50
}
resource_limits {
resource_type = "memory"
minimum = 12
maximum = 100
}
auto_provisioning_defaults {
service_account = google_service_account.default.email
oauth_scopes = [
"https://www.googleapis.com/auth/cloud-platform"
]
management {
auto_repair = true
}
}
}
} Sadly this did not work. Once I included the management block, it set |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Community Note
modular-magician
user, it is either in the process of being autogenerated, or is planned to be autogenerated soon. If an issue is assigned to a user, that user is claiming responsibility for the issue. If an issue is assigned tohashibot
, a community member has claimed the issue already.Terraform Version
Terraform v1.4.6
on darwin_amd64
provider registry.terraform.io/hashicorp/google v4.63.1
Affected Resource(s)
Terraform Configuration Files
Expected Behavior
Terraform should create a working node auto-provisioning configuration that adds more nodes and node pools as demand increases.
Actual Behavior
Using a GKE provider with the supplied code with a higher version than v4.43.0 fails to create a working node auto-provisioning configuration. It looks like it is configured correctly, however if you create a resource demand on the cluster, it will not add any nodes or node pools.
Steps to Reproduce
Important Factoids
The issue seems to stem around the usage of the
auto_provisioning_defaults
section. If that block is omitted, then this bug does not appear.The text was updated successfully, but these errors were encountered: