Created
November 11, 2020 14:05
-
-
Save talalUcef/b9a7385bcfdcb222edafcc13fcb20f65 to your computer and use it in GitHub Desktop.
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
# Create a namespace for PostgreSQL | |
kubectl create namespace postgresql | |
#Install helm chart for postgreSQL | |
helm install postgresql stable/postgresql --namespace postgresql | |
# Get postgres host | |
kubectl get svc --namespace postgresql postgres-release-postgresql -o jsonpath="{.spec.clusterIP}" | |
# Get postgreSQL postgres's user password | |
kubectl get secret --namespace postgresql postgres-postgresql -o jsonpath="{.data.postgresql-password}" | base64 --decode |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment