Skip to content
Snippets Groups Projects
Verified Commit 58708e9c authored by David Hoese's avatar David Hoese
Browse files

Update rabbitmq deploy to reuse previous password/cookie

parent 5f2ef6e0
No related branches found
No related tags found
No related merge requests found
...@@ -107,9 +107,14 @@ deploy_prod_rabbit: ...@@ -107,9 +107,14 @@ deploy_prod_rabbit:
# copy secret kubeconfig to the mounted (pwd) directory # copy secret kubeconfig to the mounted (pwd) directory
- cp $kubekorner_k3s_config . - cp $kubekorner_k3s_config .
- kubeconfig=$(basename $kubekorner_k3s_config) - kubeconfig=$(basename $kubekorner_k3s_config)
# get password from any previous installation
# if we don't do this the password will get out of sync
- pw=$(kubectl --kubeconfig $kubeconfig get secret --namespace geosphere-test geosphere-rabbit-rabbitmq -o jsonpath="{.data.rabbitmq-password}" | base64 --decode)
- auth_sec="geosphere-rabbit-rabbitmq"
- if [ $pw != "" ]; then EXTRA_ARGS="--set auth.existingPasswordSecret=$auth_sec --set auth.existingErlangSecret=$auth_sec"; fi
# install third-party rabbitmq server # install third-party rabbitmq server
- helm repo add bitnami https://charts.bitnami.com/bitnami - helm repo add bitnami https://charts.bitnami.com/bitnami
- helm upgrade -v 2 --install --kubeconfig $kubeconfig -f production/values-geosphere-rabbit.yaml --set auth.password="user" --namespace $ns geosphere-rabbit bitnami/rabbitmq - helm upgrade -v 2 --install --kubeconfig $kubeconfig -f production/values-geosphere-rabbit.yaml $EXTRA_ARGS --namespace $ns geosphere-rabbit bitnami/rabbitmq
# this job doesn't actually need any artifacts from previous jobs # this job doesn't actually need any artifacts from previous jobs
dependencies: [] dependencies: []
rules: rules:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment