secrets handling
This commit is contained in:
14
update-config.sh
Executable file
14
update-config.sh
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -ex
|
||||
|
||||
NAMESPACE=mosquitto
|
||||
|
||||
SECRETS_PLAINTEXT=$(mktemp)
|
||||
gpg --pinentry-mode=loopback --decrypt --output $SECRETS_PLAINTEXT secrets.asc
|
||||
kubectl create configmap mosquitto-broker-config \
|
||||
--from-file=mosquitto.conf=mosquitto.conf \
|
||||
--from-file=pwfile=$SECRETS_PLAINTEXT \
|
||||
--namespace=$NAMESPACE \
|
||||
--dry-run=client -o yaml | kubectl apply -f - -n $NAMESPACE
|
||||
|
||||
Reference in New Issue
Block a user