$ k rollout status deployment kubia
## deployment 확인하여 error가 있는지 확인
$ k rollout undo deployment kubia
## 이전 버젼으로 deploynment 배포(롤백)
spec: strategy: maxSurge: 1 ## 최대 신규 버젼 배포추가 가능건 maxUnavailable: 0 type: RollingUpdate
apiVersion: apps/v1beta1 kind: Deployment metadata: name: kubia spec: replicas: 3 minReadySeconds: 10 strategy: rollingUpdate: maxSurge: 1 maxUnavailable: 0 type: rollingUpdate template: metadata: labels: app: kubia spec: containers: - name: kubia image: reg.cloud.com/kubia:v3 ## 오류가나는 놈 readinessProbe: periodSeconds: 1 httpGet: path: / port: 8080 ports: - containerPort: 8080
$ k apply -f test-deploy.yml
## 신규 적용시키기
## v3가 readinessProbe에 의해서 문제가 있음을 확인하였기 때문에, 배포를 계속 진행시키지 않는다.
| 쿠버네티스 yaml 스펙 상세 설명 (0) | 2018.06.24 |
|---|---|
| 쿠버네티스 관리자 계정 들어가기 (0) | 2018.05.03 |
| 쿠버네티스에서 POD, Node의 리스소 관리(CPU, memory, 등) (0) | 2018.05.03 |
| 쿠버네티스를 통한 지속적 배포 전략(rolling, blue green) 실습 (0) | 2018.05.03 |
| 쿠버네티스 배포를 하기 위한 준비 readinessProbe, livenessProbe (0) | 2018.05.03 |
| INGRESS를 사용한 쿠버네티스 네트워크 심화(sticky session, ssl connection) (0) | 2018.05.03 |