Skip to content

krasaev/gcp-environment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

terraform&gcp playground

Initializing infrastructure:

  1. clone the repo into gcloud shell
  2. 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
  3. cd gcp-environment/initial-infrastructure
  4. run ./init.sh /path/to/config.properties
  5. use provided service's url/creds

Destroying infrastructure

  1. cd gcp-environment/initial-infrastructure
  2. run ./destroy.sh /path/to/config.properties

Service monitoring:

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published