Deploy pacs-new
- API URL
- 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
# update một service sau khi đã build image mới kubectl rollout restart deployment msc-monitor-api # get pods để xem có lỗi không kubectl get pods # xem log theo tên app kubectl logs -l app=msc-identity-api # xem log của một pod kubectl logs msc-identity-api-57f4644f44-jc8z6 # cập nhật config # ví dụ: sửa file config config/msc.branchmanager-be/appsettings.json # chạy file update-configmaps.sh ./update-configmaps.sh ### xóa và apply toàn bộ service # 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 . - Supabase
Khởi tạo supabase-db
kubectl exec -it deploy/supabase-db -- bash psql -U postgres-- Role cho client chưa đăng nhập CREATE ROLE anon NOLOGIN; -- Role cho user đã đăng nhập CREATE ROLE authenticated NOLOGIN; -- Role cho Supabase service CREATE ROLE service_role NOLOGIN;