# kubectl create deploy nginx-app --image nginx
# watch kubectl get deploy
# kubectl get pods
NAME READY STATUS RESTARTS AGEnginx-app-b8b875889-27xb9 1/1 Running 0 7m2s
# kubectl scale deploy nginx-app --replicas=2
# kubectl get pods
NAME READY STATUS RESTARTS AGE
nginx-app-b8b875889-27xb9 1/1 Running 0 7m2s
nginx-app-b8b875889-89hcz 1/1 Running 0 5s
# kubectl delete deployment nginx-app
deployment.apps "nginx-app" deleted
#kubectl get pod
No resources found in default namespace.
'Kubernetes' 카테고리의 다른 글
Service (0) | 2020.06.24 |
---|---|
Kubernetes 기본 명령어와 replicasets, deploy (0) | 2020.05.29 |
Simple service echoserver (0) | 2020.05.22 |
Ubuntu Docker: "Error response from daemon: client version 1.40 is too new. Maximum supported API version is 1.39" (0) | 2020.05.22 |
Kubernetes ETCD 이름의 유래 (0) | 2020.05.07 |