Kubernetes log when pod migrated


I'm using a couple different versions of kubernetes - 1.7, 1.8, and 1.9 - and I'd like to know what log message to look for to know when a pod has been migrated from one node to another.

-- s g

1 Answer


One very easy way is to use the API through proxy.

For example:

  • Run kube proxy to use curl without authentication

kubectl proxy

  • List all events with a watch

curl -s

That will generate some json output, and you may use a grep command or jq command to format this json output.

curl -s | jq

-- Nicola Ben
Source: StackOverflow