Skip to content

Add kubernetes_stateful_set.spec.update_strategy.rolling_update.max_unavailableΒ #2827

@gabegorelick

Description

@gabegorelick

Description

maxUnavailable is a field on StatefulSet's spec.updateStrategy.rollingUpdate config. As of Kubernetes v1.35, It is in Beta stage and supported by default, but it is not yet supported in Terraform.

See https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#maximum-unavailable-pods

Potential Terraform Configuration

resource "kubernetes_stateful_set" "test" {
  // ...
  spec {
    update_strategy {
      type = "RollingUpdate"
      rolling_update {
        max_unavailable = "50%"
      }
    }
  }
}

References

This was originally reported as #1933, but that was closed due to the feature being alpha in Kubernetes. But it is now Beta and supported by default.

Community Note

  • Please vote on this issue by adding a πŸ‘ reaction to the original issue to help the community and maintainers prioritize this request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions