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