Created
November 3, 2019 23:31
-
-
Save jc1518/78e698b7f869d60312d5cafb01ec0976 to your computer and use it in GitHub Desktop.
Jira Postgres DB deployment config file on k8s
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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