Skip to content

Instantly share code, notes, and snippets.

@talalUcef
Created November 11, 2020 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save talalUcef/b9a7385bcfdcb222edafcc13fcb20f65 to your computer and use it in GitHub Desktop.
Save talalUcef/b9a7385bcfdcb222edafcc13fcb20f65 to your computer and use it in GitHub Desktop.
# 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