알고보면 쓸데있는 신비한 잡학IT노트

Kubernetes(k8s) Summarize Commands

남차장 2023. 3. 8. 15:14
Kubernetes Summarize Commands
* kubectl 커멘드 파라메터는 예시이니 적용 전 확인
 
Create (with yaml)
kubectl create -f deployment-definition.yml
 
Get
kubectl get deployments
 
Update
kubectl apply -f deployment-definition.yml
kubectl set image deployment/myapp-deployment nginx=nginx:1.10.1
 
Status
kubectl rollout status deployment/myapp-deployment
kubectl rollout history deployment/myapp-deployment
 
Rollback
kubectl rollout undo deployment/​