Skip to main content

Deploy pacs-new

  • Jenkins: theo dõi việc build docker image
      https://jenkins.pmr.vn/view/PACS
  • Docker Repository: xem docker image đã update ở repository chưa
      https://docker.pmr.vn
  • SSH server: 192.168.18.92
  • Command
    # cd đến thư mục chứa các file yaml
    cd /root/pacs-new/kubernetes/services
    # xóa các pod đang chạy, apply lại để load image mới
    kubectl delete pods --all
    kubectl apply -f .
    # get pods để xem có lỗi không
    kubectl get pods
    # xem log của một pod
    kubectl logs msc-identity-api-57f4644f44-jc8z6
    
    # xóa và tạo lại configmap nếu có thay đổi
    # ví dụ: sửa file config config/msc.branchmanager-be/appsettings.json
    # chạy file update-configmaps.sh
    ./update-configmaps.sh
    # restart để thấy config mới
    kubectl rollout restart deployment msc-branchmanager-api