This commit is contained in:
2026-01-19 16:24:02 +01:00
commit ce8bd8d64e
8 changed files with 130 additions and 0 deletions

25
install.sh Executable file
View File

@@ -0,0 +1,25 @@
#!/bin/bash
VERSION=0.13.0
NAMESPACE=$(cat namespace)
. ./ENVDB
kubectl create namespace $NAMESPACE || echo "namespace already exists"
SECRETS_PLAINTEXT=$(mktemp)
gpg --pinentry-mode=loopback --decrypt --output $SECRETS_PLAINTEXT secrets.asc
kubectl create secret generic keycloak-secrets \
--from-env-file=$SECRETS_PLAINTEXT \
--dry-run=client -o yaml | \
kubectl apply -f - -n $NAMESPACE
rm $SECRETS_PLAINTEXT
./roll-db-credential.sh
helm upgrade --install keycloak2 -f values.yml oci://registry-1.docker.io/cloudpirates/keycloak --version $VERSION --namespace=$NAMESPACE