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 |
kerenj | bf4b4a0 | 2017-08-23 07:39:14 +0000 | [diff] [blame^] | 7 | namespace: {{ .Values.NS }} |
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: |
| 32 | - mountPath: /var/lib/mysql |
| 33 | name: vid-mariadb-data |
| 34 | - mountPath: /docker-entrypoint-initdb.d/vid-pre-init.sql |
| 35 | name: vid-pre-init |
| 36 | - mountPath: /etc/mysql/my.cnf |
| 37 | name: my-cnf |
| 38 | ports: |
| 39 | - containerPort: 3306 |
| 40 | readinessProbe: |
| 41 | tcpSocket: |
| 42 | port: 3306 |
| 43 | initialDelaySeconds: 5 |
| 44 | periodSeconds: 10 |
| 45 | volumes: |
| 46 | - name: vid-mariadb-data |
| 47 | hostPath: |
kerenj | bf4b4a0 | 2017-08-23 07:39:14 +0000 | [diff] [blame^] | 48 | path: /dockerdata-nfs/onap/vid/mariadb/data |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 49 | - name: vid-pre-init |
| 50 | hostPath: |
kerenj | bf4b4a0 | 2017-08-23 07:39:14 +0000 | [diff] [blame^] | 51 | path: /dockerdata-nfs/onap/vid/vid/lf_config/vid-pre-init.sql |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 52 | - name: my-cnf |
| 53 | hostPath: |
kerenj | bf4b4a0 | 2017-08-23 07:39:14 +0000 | [diff] [blame^] | 54 | path: /dockerdata-nfs/onap/vid/vid/lf_config/vid-my.cnf |
Borislav Glozman | 5197e2e | 2017-07-24 10:45:28 +0300 | [diff] [blame] | 55 | imagePullSecrets: |
| 56 | - name: onap-docker-registry-key |