Skip to content

Commit

Permalink
New clusters, doc update
Browse files Browse the repository at this point in the history
Still suffering from #4
  • Loading branch information
kupson committed Mar 24, 2021
1 parent 84681c5 commit cd3f628
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,16 @@ The cluster must have at least 2 nodes of type e2-medium or higher. The recommen

1. Create master project in [Google Cloud console](https://console.cloud.google.com/cloud-resource-manager). Highly confidential Terraform state will be kept in a GCS bucket in that project.

- add gcloud `gke-infra-master` configuration (please change `[email protected]` to correct address)

```
PROJID="<master project name>"
gcloud config configurations create gke-infra-master
gcloud config set account [email protected]
gcloud config set project "$PROJID"
gcloud auth login --activate --no-launch-browser
```

- create Terraform backend SA

```sh
Expand Down Expand Up @@ -186,6 +196,7 @@ Issuing commands from local machine should only be considered in the cluster dev

```sh
gcloud config configurations activate default
gcloud config configurations delete gke-infra-master
gcloud config configurations delete gke-infra-dev
gcloud config configurations delete gke-infra-prod
```
4 changes: 2 additions & 2 deletions variables.dev.tfvars.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"project_id": "rkways-gke-04-dev",
"name": "krampus-dev",
"project_id": "rkgke-dev-01",
"name": "karamba-dev",
"region": "europe-west2",
"zones": [
"europe-west2-a",
Expand Down
4 changes: 2 additions & 2 deletions variables.prod.tfvars.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"project_id": "rkways-gke-04-prod",
"name": "krampus-prod",
"project_id": "rkgke-prod-01",
"name": "karamba-prod",
"region": "europe-west2",
"zones": [
"europe-west2-a",
Expand Down

0 comments on commit cd3f628

Please sign in to comment.