Monitoring Kubernetes Resources with Fabric8 Informers
In my previous article we learned how to use the fabric8 java kubernetes client. In this article we are going to explore their Informer API.
The Informer API can be used to monitor Kubernetes resources (pods, services, etc.). This can be useful for a number of things like performing actions when a resource is created, destroyed, etc.
Using Informers
Informers are used to monitor Kubernetes resources. We create an informer with SharedInformerFactory
: