Immediately terminate the Kubernetes pod
The tip could save some time on the certification exams:
kubectl -n finance delete po finance --grace-period=0 --force
By default, Kubernetes waits for a specified time called the termination grace period. By default, this is 30 seconds.
The key
--grace-period={{ seconds }} is time, which Kubernetes waits for graceful shutdown of a Pod. If it is 0,
SIGKILL will be sent immediately to any process in the pod.
The key
--force must be specified for such kind of operation in versions of Kubernetes 1.5 and higher.