Community Note
- Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request.
- Please do not leave +1 or me too comments, they generate extra noise for issue followers and do not help prioritize the request.
- If you are interested in working on this issue or have submitted a pull request, please leave a comment.
- If an issue is assigned to a user, that user is claiming responsibility for the issue.
- Customers working with a Google Technical Account Manager or Customer Engineer can ask them to reach out internally to expedite investigation and resolution of this issue.
Terraform Version & Provider Version(s)
Terraform v1.15.3
- provider registry.terraform.io/hashicorp/google v7.32.0
Affected Resource(s)
https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/container_node_pool
Terraform Configuration
resource "google_container_node_pool" "nodes" {
.....
.....
.....
node_drain_config {
respect_pdb_during_node_pool_deletion = false
}
}
Debug Output
N/A
Expected Behavior
Node pool should force node replacement with PDB
Actual Behavior
Node pool stuck upgrading because its unable to drain the nodes (PDB dont allow to destroy pods)
Steps to reproduce
- Deploy cluster
- Deploy node pool with respect_pdb_during_node_pool_deletion = false
- Deploy application with PDB where minAvavilable 1
- Make sure that PDB pods are on the node that will be replaced
- Trigger node-pool upgrade instance type
Important Factoids
No response
References
No response
Community Note
Terraform Version & Provider Version(s)
Terraform v1.15.3
Affected Resource(s)
https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/container_node_pool
Terraform Configuration
Debug Output
N/A
Expected Behavior
Node pool should force node replacement with PDB
Actual Behavior
Node pool stuck upgrading because its unable to drain the nodes (PDB dont allow to destroy pods)
Steps to reproduce
Important Factoids
No response
References
No response