yuryn | fcef994 | 2017-10-26 17:10:50 +0300 | [diff] [blame] | 1 | #{{ if not .Values.disableVidVidMariadb }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 2 | apiVersion: extensions/v1beta1 |
| 3 | kind: Deployment |
| 4 | metadata: |
| 5 | labels: |
| 6 | app: vid-mariadb |
| 7 | name: vid-mariadb |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 8 | namespace: "{{ .Values.nsPrefix }}-vid" |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 9 | spec: |
| 10 | selector: |
| 11 | matchLabels: |
| 12 | app: vid-mariadb |
| 13 | template: |
| 14 | metadata: |
| 15 | labels: |
| 16 | app: vid-mariadb |
| 17 | name: vid-mariadb |
| 18 | spec: |
| 19 | containers: |
kerenj | bf4b4a0 | 2017-08-23 07:39:14 +0000 | [diff] [blame] | 20 | - image: {{ .Values.image.mariadb }} |
| 21 | imagePullPolicy: {{ .Values.pullPolicy }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 22 | name: vid-mariadb |
| 23 | env: |
| 24 | - name: MYSQL_DATABASE |
Mandeep Khinda | aa5ea3e | 2017-08-21 16:11:03 -0400 | [diff] [blame] | 25 | value: vid_openecomp_epsdk |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 26 | - name: MYSQL_USER |
| 27 | value: vidadmin |
| 28 | - name: MYSQL_PASSWORD |
| 29 | value: Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U |
| 30 | - name: MYSQL_ROOT_PASSWORD |
| 31 | value: LF+tp_1WqgSY |
| 32 | volumeMounts: |
yuryn | 8b3bc5a | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 33 | - mountPath: /etc/localtime |
| 34 | name: localtime |
| 35 | readOnly: true |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 36 | - mountPath: /var/lib/mysql |
| 37 | name: vid-mariadb-data |
| 38 | - mountPath: /docker-entrypoint-initdb.d/vid-pre-init.sql |
| 39 | name: vid-pre-init |
| 40 | - mountPath: /etc/mysql/my.cnf |
| 41 | name: my-cnf |
| 42 | ports: |
| 43 | - containerPort: 3306 |
| 44 | readinessProbe: |
| 45 | tcpSocket: |
| 46 | port: 3306 |
| 47 | initialDelaySeconds: 5 |
| 48 | periodSeconds: 10 |
| 49 | volumes: |
yuryn | 8b3bc5a | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 50 | - name: localtime |
| 51 | hostPath: |
| 52 | path: /etc/localtime |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 53 | - name: vid-mariadb-data |
BorislavG | 66a9a5c | 2017-09-06 15:12:46 +0300 | [diff] [blame] | 54 | persistentVolumeClaim: |
| 55 | claimName: vid-db |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 56 | - name: vid-pre-init |
| 57 | hostPath: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 58 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/vid/vid/lf_config/vid-pre-init.sql |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 59 | - name: my-cnf |
| 60 | hostPath: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 61 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/vid/vid/lf_config/vid-my.cnf |
Borislav Glozman | 5197e2e | 2017-07-24 10:45:28 +0300 | [diff] [blame] | 62 | imagePullSecrets: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 63 | - name: "{{ .Values.nsPrefix }}-docker-registry-key" |
yuryn | fcef994 | 2017-10-26 17:10:50 +0300 | [diff] [blame] | 64 | #{{ end }} |