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