Skip to content

Commit

Permalink
Postgres DBs via Twingate and Kubernetes
Browse files Browse the repository at this point in the history
  • Loading branch information
codingforentrepreneurs committed Jan 9, 2024
1 parent 81b8bfb commit 5f9fd27
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions k8s/dbs/commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ Path: `postgres://username@pgpassword:db.default.svc.cluster.local/dbname`

Using kubectl port-forward
```bash
# kubectl port-forward svc/db 5432:5432
# PGPASSWORD=pgpassword psql -h localhost -p 5432 -U username -d dbname
kubectl port-forward svc/db 5432:5432
PGPASSWORD=pgpassword psql -h localhost -p 5432 -U username -d dbname

```
Using Twingate
```bash
# PGPASSWORD=pgpassword psql -h db.default.svc.cluster.local -p 5432 -U username -d dbname
PGPASSWORD=pgpassword psql -h db.default.svc.cluster.local -p 5432 -U username -d dbname
```
File renamed without changes.

0 comments on commit 5f9fd27

Please sign in to comment.