cej55 / carsharing

car-sharing msa
0 stars 2 forks source link

무정지 배포(Readness) #7

Open cej55 opened 3 years ago

cej55 commented 3 years ago

<< Readness >> 1.pod 모니터링 (새로운 터미널) 가동 kubectl get pod -n ns-carsharing 2.yml에reandness 설정하여 재배포
2.1. rservation/kubernetes deployment.yml 수정

      readinessProbe:
        httpGet:
          path: '/reservations'   # 서비스 Helth Check 경로 설정
          port: 8080
        initialDelaySeconds: 10
        timeoutSeconds: 2
        periodSeconds: 5
        failureThreshold: 10

2.2. 재배포 kubectl apply -f deployment.yml -n ns-carsharing 2.3.pod 모니터링 (새로운 터미널) 터미널에서 pod명 확인 => readness 배포pod, 정상인지 확인 2.4.siege 에서 접속 상태 발생 /#siege -c1 -t120S -v http://10.0.240.145:8080/reservations

  1. 신규버전 빌드 및 재배포하여 무장단 배포되는 지 확인 3.1 소스 수정/ 빌드 / 도커이미지 등록 및 배포 mvn package -Dmaven.test.skip=true az acr build --registry user04skccacr --image user04skccacr.azurecr.io/carsharing-reservation:latest --file Dockerfile . kubectl apply -f deployment.yml -n ns-carsharing 4.siege에서 추가 재배포시 정상 여부 확인 /#siege -c1 -t120S -v http://10.0.240.145:8080/reservations 5.pod 모니터링 (새로운 터미널) 기존 pod 살아 있는지 확인 신규 pod 살아 있는지 학인 신규가 pod 1/1 runging 기존 pod가 terminating 되는지 확인