Skip to content

Commit

Permalink
fixed one and added scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
FilipHarald committed Oct 10, 2024
1 parent ef2575b commit d48e60e
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions k8s/production/skaffold.production.light.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ build:
buildArgs:
NODE_ENV: "production"
VITE_API_URL: "https://api.chicmoz.info/v1/d1e2083a-660c-4314-a6f2-1d42f4b944f4" # TODO: change the api key
VITE_WS_URL: "wss://ws.chicmoz.info"
requires:
- image: registry.digitalocean.com/aztlan-containers/chicmoz-base
alias: BASE
Expand Down
4 changes: 4 additions & 0 deletions scripts/production/0_chicmoz_services.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
kubectl scale --replicas 0 -n chicmoz-prod deployment aztec-listener
kubectl scale --replicas 0 -n chicmoz-prod deployment explorer-api
kubectl scale --replicas 0 -n chicmoz-prod deployment auth
kubectl scale --replicas 0 -n chicmoz-prod deployment websocket-event-publisher
4 changes: 4 additions & 0 deletions scripts/production/0_other_services.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
kubectl scale statefulset --replicas 0 -n chicmoz-prod kafka-controller
kubectl scale statefulset --replicas 0 -n chicmoz-prod redis-master
kubectl scale statefulset --replicas 0 -n chicmoz-prod redis-replicas
kubectl scale statefulset --replicas 0 -n chicmoz-prod postgresql
4 changes: 4 additions & 0 deletions scripts/production/1_chicmoz_services.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
kubectl scale --replicas 1 -n chicmoz-prod deployment aztec-listener
kubectl scale --replicas 1 -n chicmoz-prod deployment explorer-api
kubectl scale --replicas 1 -n chicmoz-prod deployment auth
kubectl scale --replicas 1 -n chicmoz-prod deployment websocket-event-publisher
4 changes: 4 additions & 0 deletions scripts/production/1_other_services.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
kubectl scale statefulset --replicas 1 -n chicmoz-prod kafka-controller
kubectl scale statefulset --replicas 1 -n chicmoz-prod redis-master
kubectl scale statefulset --replicas 1 -n chicmoz-prod redis-replicas
kubectl scale statefulset --replicas 1 -n chicmoz-prod postgresql
4 changes: 4 additions & 0 deletions scripts/production/full_other_services.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
kubectl scale statefulset --replicas 3 -n chicmoz-prod kafka-controller
kubectl scale statefulset --replicas 1 -n chicmoz-prod redis-master
kubectl scale statefulset --replicas 3 -n chicmoz-prod redis-replicas
kubectl scale statefulset --replicas 1 -n chicmoz-prod postgresql

0 comments on commit d48e60e

Please sign in to comment.