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