airavata-courses / Viyad

Spring 2022 Project
Apache License 2.0
0 stars 0 forks source link

Data base connection issue: PostgreSQL to Auth service #105

Closed renuka-srishti closed 2 years ago

ratchahan-anbarasan commented 2 years ago

Hi, Ideally the database services needs to be deployed prior to deploying your micro-services if you are using kubernetes. If not the services CrashLoopback but restarts always.I found a work around using initcontainers that would do a health check on the db service before deploying them.

You can refer to the deployment yaml files from the link below https://github.com/airavata-courses/vulcan/tree/develop/kubernetes.