- Google Cloud Account
- gcloud SDK installed
- GCP Project with Billing and Compute Engine Enabled
gcloud init
gcloud auth application-default login
export GOOGLE_PROJECT=$(gcloud config get-value project)
As of RBAC Constraints on GKE, it's necessary to edit one file.
On line 12
subjects:
- apiGroup: rbac.authorization.k8s.io
kind: User
name: <yourgcpaccountemail.com>
please enter your valid GCP account email.
terraform init
terraform apply
gcloud container clusters get-credentials $(terraform output cluster_name) --zone $(terraform output cluster_zone)
kubectl apply -f services/traefik
kubectl apply -f services/whoami
kubectl apply -f services/nginx