Container/K8S
k8s | rollout / update
icf_
2022. 11. 29. 00:16
업데이트
# kubectl -n test set image deploy {디플로이 서비스네임} nginx=seongdong/nginx --record
업데이트 내역
# kubectl -n test rollout history deployment {배포된 디플로이이름}
record적용을 안하고 생성했을때 image확인방법
# kubectl -n {namespace} rollout history deployment {deploy name} --revision={number}
rollback
# kubectl -n {namespace} undo deployment {deploy name} --to-revision={number}
상태확인방법 2가지
# kubectl rollout status
또는 실시간 모니터링방법
# watch kubectl get svc,ep,deploy,rs,po -o wide -n test =>쿠버네티스 모니터링
# watch curl {ip address} => 웹로딩확인
728x90