add kubectl diff to cheatsheet (#18481)

pull/18678/head
zhouya0 2020-01-13 09:53:37 +08:00 committed by Kubernetes Prow Robot
parent 7fc323d451
commit 0c57f2c46b
1 changed files with 3 additions and 0 deletions

View File

@ -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