Skip to content

Instantly share code, notes, and snippets.

@badri
Created April 3, 2023 07:37
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 badri/980a72ac3a0ea7d8a46e60efc7dc0a48 to your computer and use it in GitHub Desktop.
Save badri/980a72ac3a0ea7d8a46e60efc7dc0a48 to your computer and use it in GitHub Desktop.
Postgres client image
apiVersion: v1
kind: Pod
metadata:
name: postgresql-client
namespace: postgresql-client
labels:
app: postgresql-client
annotations:
cluster-autoscaler.kubernetes.io/safe-to-evict: "true"
spec:
serviceAccountName: postgresql-client
securityContext:
runAsNonRoot: true
supplementalGroups: [ 10001]
fsGroup: 10001
containers:
- name: postgresql-client
image: andreswebs/postgresql-client
imagePullPolicy: Always
securityContext:
runAsUser: 1000
stdin: true
tty: true
command: ["/bin/sh"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment