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