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`
|
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`
|
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`
|
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
|
export PGUSER PGHOST PGPASSWORD PGSSLMODE PGDATABASE
|
||||||
|
|
||||||
MA_CONF=`cat config-test.json`
|
MA_CONF=`cat config-test.json`
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
{
|
{
|
||||||
"mqtt": {
|
"mqtt": {
|
||||||
"broker": "mqtt://emqx01-anonymous-cluster-internal.broker.svc.cluster.local:1883",
|
"broker": "mqtt://emqx01-anonymous-cluster-internal.broker.svc.cluster.local:1883",
|
||||||
|
"username": "archiver",
|
||||||
"tlsEnable": "false"
|
"tlsEnable": "false"
|
||||||
},
|
},
|
||||||
"includeTopics": [
|
"includeTopics": [
|
||||||
|
@ -23,6 +23,8 @@ spec:
|
|||||||
envFrom:
|
envFrom:
|
||||||
- secretRef:
|
- secretRef:
|
||||||
name: ma-db-cred
|
name: ma-db-cred
|
||||||
|
- secretRef:
|
||||||
|
name: ma-mqtt-cred
|
||||||
- configMapRef:
|
- configMapRef:
|
||||||
name: ma-conf
|
name: ma-conf
|
||||||
|
|
||||||
|
@ -11,6 +11,7 @@ LOGIN=ma
|
|||||||
PASSWORD=`openssl rand -base64 24`
|
PASSWORD=`openssl rand -base64 24`
|
||||||
NAMESPACE=`cat namespace`
|
NAMESPACE=`cat namespace`
|
||||||
|
|
||||||
|
|
||||||
psql <<EOF
|
psql <<EOF
|
||||||
do
|
do
|
||||||
\$\$
|
\$\$
|
Reference in New Issue
Block a user