how can I replace a pod with
kubectl replace -f without waiting too long while the pod is being deleted?
as it is it takes a few precious seconds.
k delete pod <podname> --force and then k create -f <whatever>
yeah, that still takes about 10 or so seconds
to delete the pod
Hello, @Michael Cuffaro
Please try with
--force --grace-period 0 for instant delete.
With 1.18+ you shouldn’t need the grace period flag.
You can use ‘–force’ with replace as well, saves you one step there. but it is still slower than delete --force and apply