- clone the repo into gcloud shell
- prepare config file
domain.name=example.com # leave domain.cert.* empty to generate self-signed certificates domain.cert.private-key-file= domain.cert.public-key-file= github.organization.name=example github.jenkins.app-id=example github.jenkins.private-key-file=./jenkins-github-private-key.key
- cd gcp-environment/initial-infrastructure
- run ./init.sh /path/to/config.properties
- use provided service's url/creds
- cd gcp-environment/initial-infrastructure
- run ./destroy.sh /path/to/config.properties
For spring boot expose /actuator/prometheus api and add the label and port name to a service
labels:
monitor: spring-actuator-prometheus-monitor
...
ports:
- name: http
TODO:
- fix todos
- polish init/destroy scripts
- gke nodes must not use public ip's, cloud nat
- add cloud armor
- configure filebeat
- switch interservice communication to https
- enable registry
- make external services ip static/use single ip
- add SA to jenkins agent
- custom jenkins agent