Skip to content

Commit

Permalink
FIx fusion auth stack (#533)
Browse files Browse the repository at this point in the history
* FIx fusion auth stack

* remove debug logs

---------

Co-authored-by: Gutium Alexei <[email protected]>
  • Loading branch information
alexeigutium and Gutium Alexei authored Aug 19, 2024
1 parent b7f9a3c commit 4428df7
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
9 changes: 3 additions & 6 deletions stacks/fusionauth/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 \
Expand Down
13 changes: 12 additions & 1 deletion stacks/fusionauth/search-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 4428df7

Please sign in to comment.