Skip to content

Instantly share code, notes, and snippets.

@hitman99
Created July 2, 2021 13:06
Show Gist options
  • Save hitman99/d5d67be9dbe641e34104d871fbf44c96 to your computer and use it in GitHub Desktop.
Save hitman99/d5d67be9dbe641e34104d871fbf44c96 to your computer and use it in GitHub Desktop.
Postgresql client pod
apiVersion: v1
kind: Pod
metadata:
name: pgcli
namespace: sandbox
spec:
containers:
- name: pgcli
image: jbergknoff/postgresql-client
command: ['sh', '-c', 'sleep 600']
env:
- name: PG_ENDPOINT
valueFrom:
secretKeyRef:
name: pg-secret-user
key: POSTGRES_URL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment