From 4428df757cca2885c0fc68369b923d1dc5038681 Mon Sep 17 00:00:00 2001 From: Gutium Alexei Date: Mon, 19 Aug 2024 19:08:42 +0300 Subject: [PATCH] FIx fusion auth stack (#533) * FIx fusion auth stack * remove debug logs --------- Co-authored-by: Gutium Alexei --- stacks/fusionauth/deploy.sh | 9 +++------ stacks/fusionauth/search-values.yaml | 13 ++++++++++++- 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/stacks/fusionauth/deploy.sh b/stacks/fusionauth/deploy.sh index d30b32fd..df0b1d43 100755 --- a/stacks/fusionauth/deploy.sh +++ b/stacks/fusionauth/deploy.sh @@ -12,12 +12,11 @@ set -e ################################################################################ STACK="fusionauth" CHART="fusionauth/fusionauth" -CHART_VERSION="0.12.1" +CHART_VERSION="1.0.8" NAMESPACE="fusionauth" - -DB_POSTGRES_USER_PASSWORD=`cat /dev/urandom | tr -dc '[:alnum:]' | head -c 42` -DB_FUSIONAUTH_USER_PASSWORD=`cat /dev/urandom | tr -dc '[:alnum:]' | head -c 42` +DB_POSTGRES_USER_PASSWORD=`LC_CTYPE=C LC_ALL=C tr -dc '[:alnum:]' < /dev/urandom | head -c 42` +DB_FUSIONAUTH_USER_PASSWORD=`LC_CTYPE=C LC_ALL=C tr -dc '[:alnum:]' < /dev/urandom | head -c 42` if [ -z "${MP_KUBERNETES}" ]; then # use local version of values.yml @@ -35,12 +34,10 @@ helm repo add stable https://charts.helm.sh/stable helm repo add bitnami https://charts.bitnami.com/bitnami helm repo add fusionauth https://fusionauth.github.io/charts helm repo update > /dev/null - # Install PostgresSQL and Elasticsearch helm install --atomic db bitnami/postgresql --create-namespace --namespace "$NAMESPACE" --set auth.enablePostgresUser=true --set auth.postgresPassword="$DB_POSTGRES_USER_PASSWORD" --set image.tag=14.9.0-debian-11-r2 helm install --atomic search bitnami/elasticsearch --namespace "$NAMESPACE" -f "$SEARCH_VALUES" - helm upgrade "$STACK" "$CHART" \ --atomic \ --install \ diff --git a/stacks/fusionauth/search-values.yaml b/stacks/fusionauth/search-values.yaml index 8698a759..9d0a6ed5 100644 --- a/stacks/fusionauth/search-values.yaml +++ b/stacks/fusionauth/search-values.yaml @@ -24,7 +24,18 @@ volumeClaimTemplate: master: replicaCount: 3 - extraRoles: "master,data,data_content,data_hot,data_warm,data_cold,data_frozen,ingest,ml,remote_cluster_client,transform" + extraRoles: + - "master" + - "data" + - "data_content" + - "data_hot" + - "data_warm" + - "data_cold" + - "data_frozen" + - "ingest" + - "ml" + - "remote_cluster_client" + - "transform" ingest: replicaCount: 0 coordinating: