--output-watch-events

This commit is contained in:
Jerome Petazzoni
2020-11-11 22:46:20 +01:00
parent ede4ea0dd5
commit b251ff3812

View File

@@ -287,9 +287,9 @@ class: extra-details
- "GVK" appears a lot in the API machinery code
- Conversions are possible between different versions
- Conversions are possible between different versions and even between API groups
(and even between API groups; e.g. when Deployments moved from `extensions` to `apps`)
(e.g. when Deployments moved from `extensions` to `apps`)
---
@@ -354,6 +354,34 @@ We demonstrated *update* and *watch* semantics.
---
class: extra-details
## Watch events
- `kubectl get --watch` shows changes
- If we add `--output-watch-events`, we can also see:
- the difference between ADDED and MODIFIED resources
- DELETED resources
.exercise[
- In one terminal, watch pods, displaying full events:
```bash
kubectl get pods --watch --output-watch-events
```
- In another, run a short-lived pod:
```bash
kubectl run pause --image=alpine --rm -ti --restart=Never -- sleep 5
```
]
---
# Other control plane components
- API server ✔️