Justin의 개발 로그
Published 2020. 5. 27. 09:58
Deploy an app Kubernetes

# 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.

 

 

profile

Justin의 개발 로그

@라이프노트

포스팅이 좋았다면 "좋아요❤️" 또는 "구독👍🏻" 해주세요!