From ec50a90bca6c4ff26f609ec33523bed607ccfc9b Mon Sep 17 00:00:00 2001 From: 1dropaflame <52415475+1dropaflame@users.noreply.github.com> Date: Thu, 4 May 2023 12:46:06 -0500 Subject: [PATCH] Update c.pod_design.md In CKAD use imperative commands to save time: --- c.pod_design.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/c.pod_design.md b/c.pod_design.md index 4dc0909a..6b3c68ee 100644 --- a/c.pod_design.md +++ b/c.pod_design.md @@ -664,6 +664,29 @@ version-2 ```
++In CKAD use imperative commands to save time: +``` +$ k create deploy nginx1 --image=nginx -r=3 +$ k label deployments.apps nginx1 version=v1 +$ k create deploy nginx2 --image=nginx -r=1 +$ k label deployments.apps nginx2 version=v2 +$ k expose deployment nginx1 --port=80 +$ k get svc +$ k get endpoints +$kubectl run tmp --rm -it --image=busybox --restart=Never -- wget -O- http://10.244.120.100:80 + +Connecting to 10.244.120.100:80 (10.244.120.100:80) +writing to stdout + + +
+