-
Notifications
You must be signed in to change notification settings - Fork 1k
Open
Labels
Description
Description
Kubernetes >v1.25 supports a terminationGracePeriodSeconds field on livenessProbe and startupProbe. This field overrides the Pod-level terminationGracePeriod field when a SIGTERM is triggered by a probe failure.
Probe-level terminationGracePeriodSeconds cannot be set for readiness probes.
Potential Terraform Configuration
resource "kubernetes_deployment" "example" {
metadata {
# ...
}
spec {
# ...
template {
# ...
spec {
container {
# ...
liveness_probe {
# ...
termination_grace_period_seconds = 3
}
}
}
}
}
}References
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
gabegorelick, andrewpage, haggholm, kklin and brandonw