Skip to content

Instantly share code, notes, and snippets.

@CermakM
Last active October 1, 2020 09:07
Show Gist options
  • Save CermakM/69b0e3f6ccdcdc82c433815d2490246b to your computer and use it in GitHub Desktop.
Save CermakM/69b0e3f6ccdcdc82c433815d2490246b to your computer and use it in GitHub Desktop.
Kubernetes PSQL deployment
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
gist.github.com/url: "https://gist.github.com/CermakM/69b0e3f6ccdcdc82c433815d2490246b"
gist.github.com/owner: "https://github.com/CermakM"
name: dev-tools-psql
spec:
replicas: 1
selector:
matchLabels:
app: dev-tools
component: psql
template:
metadata:
labels:
app: dev-tools
component: psql
name: dev-tools-psql
spec:
containers:
- image: governmentpaas/psql:latest
command:
- sh
- -c
args:
- while true; do sleep 30; done
imagePullPolicy: IfNotPresent
name: psql
resources:
limits:
cpu: 100m
memory: 128Mi
requests:
cpu: 50m
memory: 64Mi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment