Add lifecycle hooks
intermediate
20 minInstructions
In this challenge, you must address the following issue in your Kubernetes cluster: The app needs a preStop sleep to avoid broken connections.
Instructions:
- Use only
kubectl
and manifests. - Do not delete critical resources unless explicitly required.
- Validate your solution using
kubectl get
,logs
,describe
, andexec
.
Expected outcome: the application is fully functional, and the issue is resolved.