A Demo project for issue #433.
-
To run the project in local environment, connecting to a local database:
-
Install a postgres database exposing port 5432.
-
Start the application with default profile.
-
-
To run the project in kubernetes, connect to GCP Cloud SQL instances (tested with minikube):
-
Enable
gcp-auth
addon:minikube addons enable gcp-auth
-
In project root directory, run the following commands to build image:
eval $(minikube docker-env) docker image build -t demo-sql-kube:latest .
-
Depoly the config map and the application:
kubectl create -f app-config-map.yml kubectl create -f deployment-app.yml