docker - What process signal does pod receive when executing `kubectl rolling-update`? -
i making graceful shutdown feature using go lang when kebernetes doing rolling-update on google container engine. know process signal sent running pods when kubectl rolling-update starts?
i've listened os.kill, os.interrupt, syscall.sigterm, syscall.sigkill, syscall.sigstop signals handled, none of signals raised while kubectl rolling-update.
i appreciate answers.
i got solution! used shell script file entrypoint , executed go binary in script file. process id of executed go binary not 1.(shell script process's id 1 instead) , docker sent sigterm pid 1(which not propagated it's child processes). so, had change entrypoint direct executing go binary, , got sigterm in go code now. refer link
Comments
Post a Comment