From 8a378a88b792560c7aa1697d344816476f658883 Mon Sep 17 00:00:00 2001 From: s_gulari Date: Sun, 6 Sep 2020 16:26:17 -0400 Subject: [PATCH] Update c.pod_design.md Updated create simple deploy command using 'k run nginx --image=nginx:1.7.8 --replicas=2 --port=80' instead of doing multiple steps to do the same. --- c.pod_design.md | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/c.pod_design.md b/c.pod_design.md index 12616045..269a9b79 100644 --- a/c.pod_design.md +++ b/c.pod_design.md @@ -215,13 +215,7 @@ kubernetes.io > Documentation > Concepts > Workloads > Controllers > [Deployment

```bash -kubectl create deployment nginx --image=nginx:1.7.8 --dry-run=client -o yaml > deploy.yaml -vi deploy.yaml -# change the replicas field from 1 to 2 -# add this section to the container spec and save the deploy.yaml file -# ports: -# - containerPort: 80 -kubectl apply -f deploy.yaml +k run nginx --image=nginx:1.7.8 --replicas=2 --port=80 ``` or, do something like: