This commit is contained in:
15
load-debug-env
Normal file
15
load-debug-env
Normal file
@ -0,0 +1,15 @@
|
||||
SECRETS=`mktemp`
|
||||
gpg --decrypt --passphrase $GPG_PASSPHRASE --yes --batch --output $SECRETS ./deployment/secrets.asc
|
||||
. $SECRETS
|
||||
rm $SECRETS
|
||||
|
||||
DB_NAMESPACE=database1
|
||||
DB_DEPLOYNAME=database
|
||||
|
||||
REDIS_NAMESPACE=redis
|
||||
REDIS_SERVICE_NAME=redis
|
||||
|
||||
PGHOST=`kubectl get services $DB_DEPLOYNAME -n $DB_NAMESPACE -o jsonpath="{.status.loadBalancer.ingress[0].ip}"`
|
||||
REDISHOST=`kubectl get services $REDIS_SERVICE_NAME -n $REDIS_NAMESPACE -o jsonpath="{.status.loadBalancer.ingress[0].ip}"`
|
||||
|
||||
REDIS_URL=redis://$REDISHOST:6379/4
|
Reference in New Issue
Block a user