Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
postgres-operator
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GitHub Mirror
zalando
postgres-operator
Commits
1d2fb009
Commit
1d2fb009
authored
8 years ago
by
Henning Jacobs
Committed by
GitHub
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
how to connect via psql (#15)
parent
c08e83be
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+11
-1
11 additions, 1 deletion
README.md
with
11 additions
and
1 deletion
README.md
+
11
−
1
View file @
1d2fb009
...
...
@@ -138,3 +138,13 @@ permissions there).
### Watch Pods being created
$ kubectl --context minikube get pods -w --show-labels
### Connect to PostgreSQL
We can use the generated secret of the
`postgres`
robot user to connect to our
`acid-testcluster`
master running in Minikube:
$ export HOST_PORT=$(minikube service acid-testcluster --url | sed 's,.*/,,')
$ export PGHOST=$(echo $HOST_PORT | cut -d: -f 1)
$ export PGPORT=$(echo $HOST_PORT | cut -d: -f 2)
$ export PGPASSWORD=$(kubectl --context minikube get secret postgres.acid-testcluster.credentials.postgresql.acid.zalan.do -o 'jsonpath={.data.password}' | base64 -d)
$ psql -U postgres
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment