Description
k8s 1.29+ provides native way to add pause inside lifecycle hooks without running sleep inside exec.
Currently this provider has no way to use this functionality, there is no sleep inside various container.lifecycle.pre_stop schemas. Only exec, http_get and tcp_socket are supported.
Enhancement & K8S PR
There were changes in 1.33 that allow Zero value for sleep
Potential Terraform Configuration
lifecycle {
pre_stop {
sleep {
seconds = 5
}
}
}