Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 1 | apiVersion: extensions/v1beta1 |
| 2 | kind: Deployment |
| 3 | metadata: |
| 4 | name: portaldb |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame^] | 5 | namespace: "{{ .Values.nsPrefix }}-portal" |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 6 | spec: |
| 7 | selector: |
| 8 | matchLabels: |
| 9 | app: portaldb |
| 10 | template: |
| 11 | metadata: |
| 12 | labels: |
| 13 | app: portaldb |
| 14 | name: portaldb |
| 15 | spec: |
| 16 | containers: |
kerenj | cbac010 | 2017-08-23 10:22:33 +0000 | [diff] [blame] | 17 | - image: {{ .Values.image.portaldb}} |
| 18 | imagePullPolicy: {{ .Values.pullPolicy }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 19 | name: "portaldb" |
| 20 | env: |
| 21 | - name: MYSQL_HOST |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame^] | 22 | value: "portaldb.{{ .Values.nsPrefix }}-portal" |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 23 | - name: MYSQL_ROOT_PASSWORD |
| 24 | value: password |
| 25 | volumeMounts: |
| 26 | - mountPath: /var/lib/mysql |
| 27 | name: portal-mariadb-data |
| 28 | ports: |
| 29 | - containerPort: 3306 |
| 30 | name: portaldb |
| 31 | readinessProbe: |
| 32 | tcpSocket: |
| 33 | port: 3306 |
| 34 | initialDelaySeconds: 5 |
| 35 | periodSeconds: 10 |
| 36 | volumes: |
| 37 | - name: portal-mariadb-data |
| 38 | hostPath: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame^] | 39 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/portal/mariadb/data |
Borislav Glozman | 5197e2e | 2017-07-24 10:45:28 +0300 | [diff] [blame] | 40 | imagePullSecrets: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame^] | 41 | - name: "{{ .Values.nsPrefix }}-docker-registry-key" |