I have a Kubernetes Daemonset running on my GKE cluster version:
Server Version: version.Info{Major:"1", Minor:"9+", GitVersion:"v1.9.6-gke.1", GitCommit:"cb151369f60073317da686a6ce7de36abe2bda8d", GitTreeState:"clean", BuildDate:"2018-04-07T22:06:59Z", GoVersion:"go1.9.3b4", Compiler:"gc", Platform:"linux/amd64"}
When a pod gets deleted, my containers are handling the issued SIGTERM normally and shutting down. Both containers in the pod report the following immediately:
State: Terminated
Reason: Completed
Exit Code: 0
Started: Tue, 22 May 2018 17:09:39 -0500
Finished: Tue, 22 May 2018 17:24:11 -0500
Ready: False
However, the pod remains in Ready: 0/2
, Status: Terminating
for about 30 seconds afterward. Any ideas about why that might happen or how to diagnose it?