Skip to content

Latest commit

 

History

History
22 lines (13 loc) · 527 Bytes

cheatsheet.md

File metadata and controls

22 lines (13 loc) · 527 Bytes

cheatsheet

requesting and load generating

curl localhost:8080/update

hey -z 100s -q 1 -c 2 http://localhost:8080/update

kubernetes

kubectl rollout restart deployment mywebapp

getting the DB credentials to hit Postgres from outside K8s

  1. kubectl get secret cluster-example-app -o yaml
  2. copy the password in the YAML
  3. echo copiedSecret | base64 --decode | pbcopy
  4. paste into the liquibase.properties file, and into the webapp CLI below:

webapp CLI

PG_PASSWORD=***** PG_USER=app go run main.go