use kubectl create deployment to create deployment with --replicas and --port.

Signed-off-by: Weiping Cai <weiping.cai@daocloud.io>
This commit is contained in:
Weiping Cai
2020-06-13 17:31:10 +08:00
parent 0061388373
commit cf3becadff
4 changed files with 14 additions and 11 deletions
@@ -268,8 +268,7 @@ kubectl get pods
Production likes to run cattle, so let's create some cattle pods.
```shell
kubectl create deployment cattle --image=k8s.gcr.io/serve_hostname
kubectl scale deployment cattle --replicas=5
kubectl create deployment cattle --image=k8s.gcr.io/serve_hostname --replicas=5
kubectl get deployment
```