yuryn | fcef994 | 2017-10-26 17:10:50 +0300 | [diff] [blame] | 1 | #{{ if not .Values.disableDcaeDcaePgaas }} |
Mike Elliott | 586f03b | 2017-09-08 12:46:15 -0400 | [diff] [blame] | 2 | apiVersion: extensions/v1beta1 |
| 3 | kind: Deployment |
| 4 | metadata: |
| 5 | annotations: |
| 6 | deployment.kubernetes.io/revision: "1" |
| 7 | labels: |
| 8 | app: dcae-pgaas |
| 9 | name: dcae-pgaas |
| 10 | namespace: "{{ .Values.nsPrefix }}-dcae" |
| 11 | spec: |
| 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" |
yuryn | fcef994 | 2017-10-26 17:10:50 +0300 | [diff] [blame] | 49 | #{{ end }} |