Providing Feedback

Provide feedback at the survey

TL;DR
  • Continuously Watch and print Resources as they change

Watching Resources for changes

Motivation

Print Resources as they are updated.

It is possible to have kubectl get continuously watch for changes to objects, and print the objects when they are changed or when the watch is reestablished.

kubectl get deployments --watch
NAME      DESIRED   CURRENT   UP-TO-DATE   AVAILABLE   AGE
nginx     1         1         1            1           6h
nginx2    1         1         1            1           21m

Watch Timeouts

Watch timesout after 5 minutes, after which kubectl will re-establish the watch and print the resources.

It is possible to have kubectl get continuously watch for changes to objects without fetching them first using the --watch-only flag.

kubectl get deployments --watch-only

results matching ""

    No results matching ""