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