Deployment guide
February 19, 2022 ยท View on GitHub
This guide explains how to deploy infrastructure updates. This guide is not for deploying the infrastructure from scratch! For that, see Infrastructure bootstrapping.
Before you begin
-
Install the required development tools.
-
Create a Google Cloud CLI configuration for Fullstaq Ruby, and make sure the Google Cloud CLI is properly logged in (both using normal auth and application default auth):
gcloud config configurations create fullstaq-ruby gcloud auth login --update-adc gcloud config set project fullstaq-ruby -
Login the Azure CLI:
az login
Deploying updates
-
Make sure the
fullstaq-rubyGoogle Cloud CLI configuration is activated, and that the Azure CLI is logged in. -
Deploy
terraform-hisec/:-
(Re)initialize Terraform if necessary:
cd terraform-hisec terraform init -
Apply Terraform:
terraform apply cd ..
-
-
Deploy
terraform/:-
(Re)initialize Terraform if necessary:
cd terraform terraform init -
Apply Terraform:
terraform apply cd ..
-
-
Get the credentials for the Kubernetes cluster:
gcloud container clusters get-credentials fullstaq-ruby-autopilot --configuration fullstaq-ruby --region us-east4 -
Set the default namespace:
kubectl config set-context --current --namespace=fullstaq-ruby -
Apply the Kustomization:
kubectl apply --context=gke_fullstaq-ruby_us-east4_fullstaq-ruby-autopilot -k ../kubernetes