Closed rootfs closed 7 years ago
My understanding of the termination of container is that after a graceperiod (30sec default). The container will sigkill if sigterm didn't terminate it, the preStop hook just adds a 2 sec grace. (https://kubernetes.io/docs/concepts/workloads/pods/pod/#termination-of-pods). Did you try this PR with large delays?
good point, maybe extend the grade period too
I don't think extending the grace period fixes it. There are a couple of things that comes to mind.
agree, setting a right grace time is tricky.
In osd device daemonset, add a preStop hook handler. In the hook hanlder, watch if updated number == current number
In values.yaml, add
wait_for
for daemonsetdev-sdd
to wait for complete upgrade daemonsetdev-sdc
@dmick @alram