Skip to content

JoeWang1127/demo-sql-kube

Repository files navigation

A Demo project for issue #433.

  1. To run the project in local environment, connecting to a local database:

    1. Install a postgres database exposing port 5432.

    2. Start the application with default profile.

  2. To run the project in kubernetes, connect to GCP Cloud SQL instances (tested with minikube):

    1. Install minikube.

    2. Enable gcp-auth addon:

      minikube addons enable gcp-auth
    3. In project root directory, run the following commands to build image:

      eval $(minikube docker-env)
      docker image build -t demo-sql-kube:latest .
    4. Depoly the config map and the application:

      kubectl create -f app-config-map.yml
      kubectl create -f deployment-app.yml