e00eb88dc5d12ede784c457784424fd1b4ff3f7a
[arvados-k8s.git] / arvados / templates / postgres-deployment.yaml
1 # Copyright (C) The Arvados Authors. All rights reserved.
2 #
3 # SPDX-License-Identifier: Apache-2.0
4
5 apiVersion: apps/v1beta2
6 kind: Deployment
7 metadata:
8   name: "arvados-postgres"
9   labels:
10     app: arvados-postgres
11     chart: {{ template "arvados.chart" . }}
12     release: {{ .Release.Name }}
13     heritage: {{ .Release.Service }}
14 spec:
15   replicas: 1
16   selector:
17     matchLabels:
18       app: arvados-postgres
19       release: {{ .Release.Name }}
20   template:
21     metadata:
22       labels:
23         app: arvados-postgres
24         release: {{ .Release.Name }}
25     spec:
26       containers:
27         - name: {{ .Chart.Name }}
28           image: "postgres:9.5"
29           imagePullPolicy: {{ .Values.image.pullPolicy }}
30           volumeMounts:
31             - name: postgres-configmap
32               mountPath: /docker-entrypoint-initdb.d/create_dbs.sh
33               subPath: create_dbs.sh
34       volumes:
35         - name: postgres-configmap
36           configMap:
37             name: postgres-configmap