Watch¶
kube-api-server
provides a watch
interface. It will keep a long-polling/websocket connection with the server, and keep receiving corresponding events
I've explained the watch
implementation of the API Server
in Kube API Server: Watch
In this article, we will:
- Create and watch the changes of a nginx deployment
- Update the deployment
- Delete some pods of this deployment
- Delete the deployment