diff --git a/k8s/production/skaffold.production.light.yaml b/k8s/production/skaffold.production.light.yaml index 701c9bd3..54ab970a 100644 --- a/k8s/production/skaffold.production.light.yaml +++ b/k8s/production/skaffold.production.light.yaml @@ -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 diff --git a/scripts/production/0_chicmoz_services.sh b/scripts/production/0_chicmoz_services.sh new file mode 100755 index 00000000..c129bb71 --- /dev/null +++ b/scripts/production/0_chicmoz_services.sh @@ -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 diff --git a/scripts/production/0_other_services.sh b/scripts/production/0_other_services.sh new file mode 100755 index 00000000..7ca806a6 --- /dev/null +++ b/scripts/production/0_other_services.sh @@ -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 diff --git a/scripts/production/1_chicmoz_services.sh b/scripts/production/1_chicmoz_services.sh new file mode 100755 index 00000000..5e3e6f06 --- /dev/null +++ b/scripts/production/1_chicmoz_services.sh @@ -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 diff --git a/scripts/production/1_other_services.sh b/scripts/production/1_other_services.sh new file mode 100755 index 00000000..b01bc2b9 --- /dev/null +++ b/scripts/production/1_other_services.sh @@ -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 diff --git a/scripts/production/full_other_services.sh b/scripts/production/full_other_services.sh new file mode 100755 index 00000000..e61734ca --- /dev/null +++ b/scripts/production/full_other_services.sh @@ -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