personal mattermost server infrastructure and config-as-code.
- Docker
- gcloud account + project with compute engine enabled
- gcloud credentials through cli auth or creds json exported as env var. If you are using a JSON credentials file, it should live in the root of this project directory so that it can be found when mounting project dir to dev container as a volume.
$ git clone git@github.com:csjiang/mattermost-k8s-terraform-gcp.git && cd mattermost-k8s-terraform-gcp
$ scripts/start-dev-container.sh
From dev container:
$ scripts/deploy-infra.sh
The cluster as configured by default in this repo qualifies for GKE's free tier, but will cost a few dollars a day to run. If you don't need it up all the time you can tear down the infra and save on cost.
From dev container:
$ scripts/teardown-infra.sh