Skip to content

Commit 738a5d7

Browse files
committed
quick fixes for gcp
1 parent 43f897a commit 738a5d7

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

gcp/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ First, create an storage bucket:
3232
5. Run `terraform init`
3333
6. Run `terraform apply`.
3434

35-
The bucket name should be in the output. Please use that to configure the Terraform backend in `main.tf`.
35+
The bucket name should be in the output. Please use that to configure the Terraform `gcs` backend in [`main.tf`](./main.tf).
3636

3737
## Installation
3838

@@ -50,7 +50,7 @@ The bucket name should be in the output. Please use that to configure the Terraf
5050
6. Run `terraform plan`
5151
7. Run `terraform apply`. Note: the apply will take 10 to 20 minutes depending on the speed of the GCP backplane.
5252
8. Run `export USE_GKE_GCLOUD_AUTH_PLUGIN=True`
53-
9. When creation is done, run `gcloud container clusters get-credentials wrongsecrets-exercise-cluster --region YOUR_REGION`. Note if it errors on a missing plugin to support `kubectl`, then run `gcloud components install gke-gcloud-auth-plugin` and `gcloud container clusters get-credentials wrongsecrets-exercise-cluster`.
53+
9. When creation is done, run `gcloud container clusters get-credentials wrongsecrets-exercise-cluster --region YOUR_REGION`. Note if it errors on a missing plugin to support `kubectl`, then run `gcloud components install gke-gcloud-auth-plugin` and `gcloud container clusters get-credentials wrongsecrets-exercise-cluster --region YOUR_REGION`.
5454
10. Run `./build-and-deploy-gcp.sh`
5555

5656
Your GKE cluster should be visible in [EU-West4](https://console.cloud.google.com/kubernetes?referrer=search&project=wrongsecrets) by default. Want a different region? You can modify `terraform.tfvars` or input it directly using the `region` variable in plan/apply.

gcp/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ terraform {
33
# Set the resource group in the backend configuration below, then uncomment and apply!
44
# Note that you probably already create a resource group. Don't forget to set that correctly in this file.
55
backend "gcs" {
6-
bucket = ""
6+
bucket = "tfstate-wrongsecrets-93ac22f5"
77
prefix = "terraform/state"
88
}
99
}

wrongsecrets-balancer/src/kubernetes.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1831,12 +1831,12 @@ const createDesktopDeploymentForTeam = async ({ team, passcodeHash }) => {
18311831
resources: {
18321832
requests: {
18331833
memory: '2.5G',
1834-
cpu: '800m',
1834+
cpu: '600m',
18351835
'ephemeral-storage': '4Gi',
18361836
},
18371837
limits: {
18381838
memory: '3.5G',
1839-
cpu: '2000m',
1839+
cpu: '1900m',
18401840
'ephemeral-storage': '8Gi',
18411841
},
18421842
},

0 commit comments

Comments
 (0)