Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/julienbreux/gcppubsubbenchmark
📈 GCP PubSub Benchmark
https://github.com/julienbreux/gcppubsubbenchmark
Last synced: 26 days ago
JSON representation
📈 GCP PubSub Benchmark
- Host: GitHub
- URL: https://github.com/julienbreux/gcppubsubbenchmark
- Owner: JulienBreux
- Created: 2022-08-09T07:51:28.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-09-14T07:09:21.000Z (about 2 years ago)
- Last Synced: 2024-10-12T00:18:48.316Z (about 1 month ago)
- Language: HCL
- Size: 64.5 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 📈 GCP PubSub Benchmark
## Step 1 - Create service account key file
Create a service account:
- organization level
- allow to create project
- allow to assin billing accountCreate a JSON key file:
- Remove break line
- Rename the file to "credentials.json"
- Create a "$HOME/security/" directory
- Move file to the previous created directory## Export some variables
export TF_VAR_gcp_organization_id=XXXXXXXXXXXX
export TF_VAR_gcp_billing_account_id=XXXXXX-XXXXXX-XXXXXX
export TF_VAR_project_id=my-project-id
export GOOGLE_CREDENTIALS=$(< $HOME/security/credentials.json)## Create infrastructure
cd infrastructure/
terraform plan
terraform apply## Deploy tools (locust)
gcloud container clusters get-credentials main-xxxx --region europe-west9 --project pubsub-benchmark
kubectl apply -f deployment/1.tools