- docker build -t yourName/simpleweb .
- docker run -p 8080:8080 yourNameAccount/simpleweb
- docker-compose up
To run you need to add the secrets in an imperative way (commands typing from terminal):
kubectl create secret generic pgpassword --from-literal POSTGRES_PASSWORD=password
Install ingress-nginx on your kubernetes cluster: https://kubernetes.github.io/ingress-nginx/deploy/#quick-start
-
Make sure to setting up Workload Identity Federation: https://github.com/google-github-actions/auth#setting-up-workload-identity-federation
-
Refer to the file in workflows/5.deployment-on-google-cloud.yaml
-
Now the following secret command has to be launched on the google console from your google cloud account.
kubectl create secret generic pgpassword --from-literal POSTGRES_PASSWORD=password
-
At this point you need from the google cloud console install Helm: https://helm.sh/docs/intro/install/#from-script
-
After you can install from the google cloud console Ingress-Nginx:
helm repo add ingress-nginx https://kubernetes.github.io/ingress-nginxhelm install my-release ingress-nginx/ingress-nginx