From 0c57f2c46b1076a5fe79ea31bd8f866f9f9724cd Mon Sep 17 00:00:00 2001 From: zhouya0 <50729202+zhouya0@users.noreply.github.com> Date: Mon, 13 Jan 2020 09:53:37 +0800 Subject: [PATCH] add kubectl diff to cheatsheet (#18481) --- content/en/docs/reference/kubectl/cheatsheet.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/content/en/docs/reference/kubectl/cheatsheet.md b/content/en/docs/reference/kubectl/cheatsheet.md index dc3ab9f0dc..ba3d48b638 100644 --- a/content/en/docs/reference/kubectl/cheatsheet.md +++ b/content/en/docs/reference/kubectl/cheatsheet.md @@ -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