From 9b6b21e82024e837868f71e7288cf0dc0029e355 Mon Sep 17 00:00:00 2001 From: zhouya0 <50729202+zhouya0@users.noreply.github.com> Date: Mon, 23 Mar 2020 03:56:44 +0800 Subject: [PATCH] Add kubectl diff in kustomize (#19586) --- .../docs/tasks/manage-kubernetes-objects/kustomization.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/content/en/docs/tasks/manage-kubernetes-objects/kustomization.md b/content/en/docs/tasks/manage-kubernetes-objects/kustomization.md index f9a6ed4b18..61230513a4 100644 --- a/content/en/docs/tasks/manage-kubernetes-objects/kustomization.md +++ b/content/en/docs/tasks/manage-kubernetes-objects/kustomization.md @@ -791,6 +791,12 @@ kubectl get -k ./ kubectl describe -k ./ ``` +Run the following command to compare the Deployment object `dev-my-nginx` against the state that the cluster would be in if the manifest was applied: + +```shell +kubectl diff -k ./ +``` + Run the following command to delete the Deployment object `dev-my-nginx`: ```shell