Created
May 30, 2024 08:07
-
-
Save CHERTS/8a49c54642d1f287ecef64a99275dde5 to your computer and use it in GitHub Desktop.
Get root ca for Percona Everest (PostgreSQL)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/bin/bash | |
EVEREST_ENV=prod | |
mkdir ~/.postgresql | |
touch ~/.postgresql/root.crt | |
kubectl get secrets/pgo-root-cacert -n ${EVEREST_ENV} -o jsonpath="{.data['root\.crt']}" | base64 -d >> ~/.postgresql/root.crt | |
# psql "host=127.0.0.1 port=5432 dbname=postgres user=postgres password=XXXXXX sslmode=prefer" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment