From f1fdb253ea1e7819a5fe0fda47044421c23fd51d Mon Sep 17 00:00:00 2001 From: Melony QIN Date: Mon, 12 Aug 2019 11:40:58 +0100 Subject: [PATCH] update set image command in a simpler way update set image command in a simpler way --- content/en/docs/concepts/workloads/controllers/deployment.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/content/en/docs/concepts/workloads/controllers/deployment.md b/content/en/docs/concepts/workloads/controllers/deployment.md index 587e9658e0284..77fdd20eb52d7 100644 --- a/content/en/docs/concepts/workloads/controllers/deployment.md +++ b/content/en/docs/concepts/workloads/controllers/deployment.md @@ -158,6 +158,10 @@ Follow the steps given below to update your Deployment: ```shell kubectl --record deployment.apps/nginx-deployment set image deployment.v1.apps/nginx-deployment nginx=nginx:1.9.1 ``` + or simply use the following command : + ```shell + kubectl set image deployment/nginx-deployment nginx=nginx:1.91 --record + ``` The output is similar to this: ``` deployment.apps/nginx-deployment image updated