업데이트
# 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
'Container > K8S' 카테고리의 다른 글
1.23.17 | k8s - install(ubuntu 22.04) (0) | 2023.08.14 |
---|---|
k8s | 자동완성 설정 (0) | 2023.05.02 |
k8s | 쿠버네티스 (1.27) + calico 설치 on Centos8stream (1) | 2023.04.26 |
k8s | --dry-run (0) | 2022.11.28 |
k8s | 설치 및 설정(정리중) (0) | 2022.11.25 |