Skip to content

Instantly share code, notes, and snippets.

@jc1518
Created November 3, 2019 23:31
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 jc1518/78e698b7f869d60312d5cafb01ec0976 to your computer and use it in GitHub Desktop.
Save jc1518/78e698b7f869d60312d5cafb01ec0976 to your computer and use it in GitHub Desktop.
Jira Postgres DB deployment config file on k8s
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: jira-postgres
labels:
app: jira-postgres
spec:
replicas: 1
selector:
matchLabels:
app: jira-postgres
template:
metadata:
labels:
app: jira-postgres
spec:
containers:
- name: postgres
image: postgres:9.6
imagePullPolicy: "IfNotPresent"
ports:
- containerPort: 5432
envFrom:
- configMapRef:
name: jira-postgres-config
volumeMounts:
- mountPath: /var/lib/postgresql/data
name: jira-postgres-pv
volumes:
- name: jira-postgres-pv
persistentVolumeClaim:
claimName: jira-postgres-pvc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment