2020-06-15 21:34:52 -04:00
2020-06-02 21:17:11 -04:00
2020-06-15 21:34:52 -04:00
2020-06-15 21:34:52 -04:00
2020-06-02 21:12:56 -04:00
2020-06-15 21:34:52 -04:00

Postgres for Kube

Docker test

docker-compose up

Navigate to http://pgadmin.local

Deploy Postgres

# first time set the secrets flag
helm install postgres ./postgres --set secret=true

# To redeploy or upgrade
helm upgrade postgres ./postgres

# After uninstall secrets and pvc are not removed, reinstall without the --set secrets=true to use the old secret

Get Password

echo $(kubectl get secret postgres --output=jsonpath='{.data.POSTGRES_PASSWORD}' | base64 --decode)

Deploy PG Admin

Prod

prefix=<custom prefix>
# first time set the secrets flag
helm template pgadmin ./pgadmin --set host=$prefix"pgadmin.apps.aws.e1.nwie.net" --set secret=true | kubectl apply -f -

# To redeploy or upgrade
helm template pgadmin ./pgadmin --set host=$prefix"pgadmin.apps.aws.e1.nwie.net" | kubectl apply -f -

Login

echo $(kubectl get secret pgadmin --output=jsonpath='{.data.PGADMIN_DEFAULT_PASSWORD}' | base64 --decode)
Description
Postgres and PGAdmin for Kube
Readme 36 KiB
Languages
Python 100%