From b83ece8591a9b1b2a06b61ab407b0117cc9c39e1 Mon Sep 17 00:00:00 2001 From: Pierre Ozoux <pierre@ozoux.net> Date: Tue, 12 Apr 2022 12:58:25 +0200 Subject: [PATCH] Have different replica for Rc and NC. --- libre | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libre b/libre index a317894..4a059e7 100755 --- a/libre +++ b/libre @@ -10,8 +10,6 @@ export NUAGE_URL=`kubectl -n $NS get ing -o custom-columns=HOST:spec.rules[*].ho export BUCKET=${FQDN} export S3_ENDPOINT=hot-objects.liiib.re export S3_ENDPOINT_COLD=https://cold-objects.liiib.re -export REPLICAS="${REPLICAS:-2}" - export S3_SECRET=${NS}-dumps for key in `kubectl -n ${NS} get secrets ${S3_SECRET} -o json | jq -r '.data | keys | .[]'`; do @@ -38,6 +36,7 @@ export VERSION=stable source ./.env #cat ./version.php | grep 'array(' | cut -d\( -f2 | cut -d\) -f1 | sed 's/,/\./g' if [ "${APP}" = "nextcloud" ]; then + export REPLICAS="${REPLICAS:-2}" if [ "${VERSION}" = "alpha" ]; then export NC_VERSION=22.2.5.1 export NC_IMAGE_TAG=22.2.5-2022-03-08 @@ -51,6 +50,8 @@ if [ "${APP}" = "nextcloud" ]; then export NC_IMAGE_TAG=21.0.9-2022-03-23 export NC_WEB_IMAGE_TAG=21.0.9-2022-03-23 fi +elif [ "${APP}" = "rocketchat" ]; then + export REPLICAS="${REPLICAS:-1}" fi create_update_job_nc () { -- GitLab