new database
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Wolfgang Hottgenroth 2025-01-09 14:31:39 +01:00
parent 52b414f60f
commit 5a25204f2f
Signed by: wn
GPG Key ID: 18FDFA577A8871AD

View File

@ -1,10 +1,6 @@
#!/bin/bash #!/bin/bash
export PGUSER=`kubectl get secret -n database timescaledb -o jsonpath="{.data.superuser-username}" | base64 --decode` . ~/Workspace/mykubernetesenv/ENVDB1
export PGHOST=`kubectl get services traefik -n system -o jsonpath="{.status.loadBalancer.ingress[0].ip}"`
export PGPASSWORD=`kubectl get secret -n database timescaledb -o jsonpath="{.data.superuser-password}" | base64 --decode`
export PGSSLMODE=require
DATABASE=ma DATABASE=ma
LOGIN=ma LOGIN=ma
@ -33,7 +29,7 @@ kubectl create secret generic ma-db-cred \
--from-literal=PGUSER="$LOGIN" \ --from-literal=PGUSER="$LOGIN" \
--from-literal=PGPASSWORD="$PASSWORD" \ --from-literal=PGPASSWORD="$PASSWORD" \
--from-literal=PGDATABASE="$DATABASE" \ --from-literal=PGDATABASE="$DATABASE" \
--from-literal=PGHOST="timescaledb.database.svc.cluster.local" \ --from-literal=PGHOST="database.database1.svc.cluster.local" \
--from-literal=PGSSLMODE="require" | \ --from-literal=PGSSLMODE="require" | \
kubectl apply -f - -n $NAMESPACE kubectl apply -f - -n $NAMESPACE