k8s watch server containers

10/4/2018

Is there a way to get notified (like webhooks or sth like this?) about container changes in java?

Like, whenever a container shutdown, I still wanna get a "webhook".

Thanks for any contribution and ideas.

--
containers
docker
java
kubernetes

1 Answer

10/4/2018

Use Kubernetes API and watch for changes of your container/pod.

https://kubernetes.io/docs/reference/using-api/api-concepts/#efficient-detection-of-changes

-- Jan Garaj
Source: StackOverflow