From 76e1529e1d8e133af450e9d3ff67f0029d22232c Mon Sep 17 00:00:00 2001 From: James F McMahon Date: Wed, 21 Oct 2020 17:31:11 -0500 Subject: [PATCH] Remove outdated syntax Deployment can not be created directly with port and replicas in the newer versions of kubectl. See https://github.com/dgkanatsios/CKAD-exercises/issues/143 --- c.pod_design.md | 5 ----- 1 file changed, 5 deletions(-) diff --git a/c.pod_design.md b/c.pod_design.md index 7fec222b..ba550304 100644 --- a/c.pod_design.md +++ b/c.pod_design.md @@ -230,11 +230,6 @@ or, do something like: kubectl create deployment nginx --image=nginx:1.7.8 --dry-run=client -o yaml | sed 's/replicas: 1/replicas: 2/g' | sed 's/image: nginx:1.7.8/image: nginx:1.7.8\n ports:\n - containerPort: 80/g' | kubectl apply -f - ``` -or, -```bash -kubectl create deploy nginx --image=nginx:1.7.8 --replicas=2 --port=80 -``` -