blob: de62be501a09b05f140af97fa07b0f592dc146ff [file] [log] [blame]
Mike Elliott586f03b2017-09-08 12:46:15 -04001apiVersion: extensions/v1beta1
2kind: Deployment
3metadata:
4 annotations:
5 deployment.kubernetes.io/revision: "1"
6 labels:
7 app: dcae-pgaas
8 name: dcae-pgaas
9 namespace: "{{ .Values.nsPrefix }}-dcae"
10spec:
11 replicas: 1
12 selector:
13 matchLabels:
14 app: dcae-pgaas
15 template:
16 metadata:
17 labels:
18 app: dcae-pgaas
19 spec:
20 hostname: zldciad4vipstg00
21 containers:
22 - image: {{ .Values.image.pgaas }}
23 imagePullPolicy: {{ .Values.pullPolicy }}
24 command: ["/bin/bash"]
25 args: ["-c", "/usr/local/bin/entrypoint.sh; sleep infinity;"]
26 name: dcae-pgaas
27 ports:
28 - containerPort: 5432
29 volumeMounts:
30 - mountPath: /dbroot/pgdata
31 name: dcae-pgaas-pgdata
32 - mountPath: /dbroot/pglogs
33 name: dcae-pgaas-pglogs
34 - mountPath: /opt/tools
35 name: dcae-pgaas-tools
36 volumes:
37 - name: dcae-pgaas-pgdata
38 hostPath:
39 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/dcae/pgaas/pgdata
40 - name: dcae-pgaas-pglogs
41 hostPath:
42 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/dcae/pgaas/pglogs
43 - name: dcae-pgaas-tools
44 hostPath:
45 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/dcae/pgaas/tools
46 imagePullSecrets:
47 - name: "{{ .Values.nsPrefix }}-docker-registry-key"