這是一個自動化建立 gke infra 的酷東西, 以下省略
-
先設定 VPC subnet 資訊, 設定規則可參考 alias-ips, 圖示為參考
-
安裝 gcloud CLI 和 terraform 以及 terragrunt
-
使用以下指令登入 gcloud
gcloud auth application-default login
-
移動到欲建立之環境資料夾後, 查看建立計畫與確認, 然後部署它
cd prod/gke terragrunt plan terragrunt apply