vaibhav_16dec | e04b2fe | 2018-03-22 09:07:12 +0000 | [diff] [blame] | 1 | # Copyright © 2017 Amdocs, Bell Canada |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. |
| 5 | # You may obtain a copy of the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | # See the License for the specific language governing permissions and |
| 13 | # limitations under the License. |
| 14 | |
yuryn | fcef994 | 2017-10-26 17:10:50 +0300 | [diff] [blame] | 15 | #{{ if not .Values.disableVidVidMariadb }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 16 | apiVersion: extensions/v1beta1 |
| 17 | kind: Deployment |
| 18 | metadata: |
| 19 | labels: |
| 20 | app: vid-mariadb |
| 21 | name: vid-mariadb |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 22 | namespace: "{{ .Values.nsPrefix }}" |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 23 | spec: |
vaibhav_16dec | 4930205 | 2018-02-15 10:00:06 +0000 | [diff] [blame] | 24 | replicas: {{ .Values.vidMariaDbReplicas }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 25 | selector: |
| 26 | matchLabels: |
| 27 | app: vid-mariadb |
| 28 | template: |
| 29 | metadata: |
| 30 | labels: |
| 31 | app: vid-mariadb |
| 32 | name: vid-mariadb |
| 33 | spec: |
| 34 | containers: |
kerenj | bf4b4a0 | 2017-08-23 07:39:14 +0000 | [diff] [blame] | 35 | - image: {{ .Values.image.mariadb }} |
| 36 | imagePullPolicy: {{ .Values.pullPolicy }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 37 | name: vid-mariadb |
| 38 | env: |
| 39 | - name: MYSQL_DATABASE |
Mandeep Khinda | aa5ea3e | 2017-08-21 16:11:03 -0400 | [diff] [blame] | 40 | value: vid_openecomp_epsdk |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 41 | - name: MYSQL_USER |
| 42 | value: vidadmin |
| 43 | - name: MYSQL_PASSWORD |
| 44 | value: Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U |
| 45 | - name: MYSQL_ROOT_PASSWORD |
| 46 | value: LF+tp_1WqgSY |
| 47 | volumeMounts: |
yuryn | 8b3bc5a | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 48 | - mountPath: /etc/localtime |
| 49 | name: localtime |
| 50 | readOnly: true |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 51 | - mountPath: /var/lib/mysql |
| 52 | name: vid-mariadb-data |
| 53 | - mountPath: /docker-entrypoint-initdb.d/vid-pre-init.sql |
Pramod | 46bec90 | 2018-01-17 12:36:06 +0000 | [diff] [blame] | 54 | name: vid-lfconfig |
| 55 | subPath: vid-pre-init.sql |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 56 | - mountPath: /etc/mysql/my.cnf |
Pramod | 46bec90 | 2018-01-17 12:36:06 +0000 | [diff] [blame] | 57 | name: vid-lfconfig |
| 58 | subPath: my.cnf |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 59 | ports: |
| 60 | - containerPort: 3306 |
| 61 | readinessProbe: |
| 62 | tcpSocket: |
| 63 | port: 3306 |
| 64 | initialDelaySeconds: 5 |
| 65 | periodSeconds: 10 |
| 66 | volumes: |
yuryn | 8b3bc5a | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 67 | - name: localtime |
| 68 | hostPath: |
| 69 | path: /etc/localtime |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 70 | - name: vid-mariadb-data |
BorislavG | 66a9a5c | 2017-09-06 15:12:46 +0300 | [diff] [blame] | 71 | persistentVolumeClaim: |
| 72 | claimName: vid-db |
Pramod | 46bec90 | 2018-01-17 12:36:06 +0000 | [diff] [blame] | 73 | - name: vid-lfconfig |
| 74 | configMap: |
| 75 | name: vid-lfconfig-configmap |
| 76 | defaultMode: 0755 |
| 77 | items: |
| 78 | - key: vid-my.cnf |
| 79 | path: my.cnf |
| 80 | - key: vid-pre-init.sql |
| 81 | path: vid-pre-init.sql |
Borislav Glozman | 5197e2e | 2017-07-24 10:45:28 +0300 | [diff] [blame] | 82 | imagePullSecrets: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 83 | - name: "{{ .Values.nsPrefix }}-docker-registry-key" |
Pramod | 46bec90 | 2018-01-17 12:36:06 +0000 | [diff] [blame] | 84 | #{{ end }} |