Install Portefaix

Instructions for deploying Portefaix infrastructure on GCP

Setup

Authenticate on the Google Cloud Platform:

❯ gcloud auth application-default login

Enable APIs:

❯ make -f hack/build/gcp.mk gcp-enable-apis ENV=dev

Create a bucket for the Terraform tfstates:

❯ make -f hack/build/gcp.mk gcp-bucket ENV=dev

Create a service account for Terraform:

❯ make -f hack/build/gcp.mk gcp-terraform-sa ENV=dev

And a key:

❯ make -f hack/build/gcp.mk gcp-terraform-key ENV=dev

Configure Portefaix environment file ${HOME}/.config/portefaix/portefaix.sh:

And load environment :

❯ . ./portefaix.sh gcp

Terraform Cloud / Github Actions

Terraform Cloud is used as the remote backend. Github Actions perform tasks to deploy the GCP infrastructure.

Configure Terraform Cloud workspaces:

❯ make terraform-apply SERVICE=terraform/gcp/terraform-cloud ENV=dev
Portefaix GCP deployment

Gitops for Kubernetes

See : Gitops with FluxCD or Gitops with ArgoCD

Last modified 05.01.2022: Add: GCP architecture diagram (e35cb12)