#!/usr/bin/bash

ssh ubuntu@172.16.244.64 sudo ceph osd unset noout
ssh ubuntu@172.16.244.64 sudo ceph osd unset nobackfill
ssh ubuntu@172.16.244.64 sudo ceph osd unset norecover
ssh ubuntu@172.16.244.64 sudo ceph osd unset norebalance
ssh ubuntu@172.16.244.64 sudo ceph osd unset nodown
ssh ubuntu@172.16.244.64 sudo ceph osd unset pause

k scale --replicas=1 deployment --all -n dbs
k scale --replicas=1 statefulset --all -n dbs

k scale --replicas=1 deployment --all -n consul
k scale --replicas=3 statefulset --all -n consul

k scale --replicas=1 deployment --all -n monitoring
k scale --replicas=1 statefulset --all -n monitoring

k scale --replicas=1 deployment --all -n matrix-dialbox-cloud
k scale --replicas=1 statefulset --all -n matrix-dialbox-cloud

k scale --replicas=1 deployment --all -n gitea
k scale --replicas=1 statefulset --all -n gitea

k scale --replicas=1 deployment --all -n keycloak
k scale --replicas=1 statefulset --all -n keycloak


k scale --replicas=1 deployment --all -n cert-manager 
k scale --replicas=1 deployment --all -n docker-registry 
k scale --replicas=1 deployment --all -n hedgedoc
k scale --replicas=1 deployment --all -n proxysql
k scale --replicas=1 deployment --all -n olm
k scale --replicas=1 deployment --all -n droe
k scale --replicas=1 deployment --all -n exim
k scale --replicas=1 deployment --all -n frp
k scale --replicas=1 deployment --all -n teleport
k scale --replicas=1 deployment --all -n jitsi
k scale --replicas=1 deployment --all -n openldap
k scale --replicas=1 deployment --all -n pgo
k scale --replicas=1 deployment --all -n repo
k scale --replicas=1 deployment --all -n service-operations
k scale --replicas=1 deployment --all -n wiki
k scale --replicas=1 deployment --all -n www
k scale --replicas=1 deployment --all -n snipeit


