mqtt cred
This commit is contained in:
@ -4,7 +4,7 @@ PGHOST=`kubectl get services traefik -n system -o jsonpath="{.status.loadBalance
|
||||
PGPASSWORD=`kubectl get secrets ma-db-cred -n $N -o jsonpath="{.data.PGPASSWORD}" | base64 --decode`
|
||||
PGUSER=`kubectl get secrets ma-db-cred -n $N -o jsonpath="{.data.PGUSER}" | base64 --decode`
|
||||
PGSSLMODE=`kubectl get secrets ma-db-cred -n $N -o jsonpath="{.data.PGSSLMODE}" | base64 --decode`
|
||||
PGDATABASE="matest"
|
||||
PGDATABASE="ma"
|
||||
export PGUSER PGHOST PGPASSWORD PGSSLMODE PGDATABASE
|
||||
|
||||
MA_CONF=`cat config-test.json`
|
||||
|
@ -1,6 +1,7 @@
|
||||
{
|
||||
"mqtt": {
|
||||
"broker": "mqtt://emqx01-anonymous-cluster-internal.broker.svc.cluster.local:1883",
|
||||
"username": "archiver",
|
||||
"tlsEnable": "false"
|
||||
},
|
||||
"includeTopics": [
|
||||
|
@ -23,6 +23,8 @@ spec:
|
||||
envFrom:
|
||||
- secretRef:
|
||||
name: ma-db-cred
|
||||
- secretRef:
|
||||
name: ma-mqtt-cred
|
||||
- configMapRef:
|
||||
name: ma-conf
|
||||
|
||||
|
@ -11,6 +11,7 @@ LOGIN=ma
|
||||
PASSWORD=`openssl rand -base64 24`
|
||||
NAMESPACE=`cat namespace`
|
||||
|
||||
|
||||
psql <<EOF
|
||||
do
|
||||
\$\$
|
Reference in New Issue
Block a user