add kubectl diff to cheatsheet (#18481)

This commit is contained in:
zhouya0
2020-01-13 09:53:37 +08:00
committed by Kubernetes Prow Robot
parent 7fc323d451
commit 0c57f2c46b
@@ -194,6 +194,9 @@ kubectl get pods -o json | jq '.items[].spec.containers[].env[]?.valueFrom.secre
# List Events sorted by timestamp
kubectl get events --sort-by=.metadata.creationTimestamp
# Compares the current state of the cluster against the state that the cluster would be in if the manifest was applied.
kubectl diff -f ./my-manifest.yaml
```
## Updating Resources