Skip to content

respect_pdb_during_node_pool_deletion not working #27427

Description

@adudorov-sre

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

  1. Deploy cluster
  2. Deploy node pool with respect_pdb_during_node_pool_deletion = false
  3. Deploy application with PDB where minAvavilable 1
  4. Make sure that PDB pods are on the node that will be replaced
  5. Trigger node-pool upgrade instance type

Important Factoids

No response

References

No response

Metadata

Metadata

Assignees

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions