#!/bin/bash export PGUSER=`kubectl get secret -n database timescaledb -o jsonpath="{.data.superuser-username}" | base64 --decode` 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 LOGIN=ma PASSWORD=`openssl rand -base64 24` NAMESPACE=homea psql <