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.disableMsoMariadb }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 16 | apiVersion: extensions/v1beta1 |
| 17 | kind: Deployment |
| 18 | metadata: |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 19 | name: mso-mariadb |
| 20 | namespace: "{{ .Values.nsPrefix }}" |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 21 | spec: |
vaibhav_16dec | 263ff0e | 2018-02-13 07:23:07 +0000 | [diff] [blame] | 22 | replicas: {{ .Values.dbReplicas }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 23 | selector: |
| 24 | matchLabels: |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 25 | app: mso-mariadb |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 26 | template: |
| 27 | metadata: |
| 28 | labels: |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 29 | app: mso-mariadb |
| 30 | name: mso-mariadb |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 31 | spec: |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 32 | hostname: mso-mariadb |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 33 | containers: |
| 34 | - args: |
kerenj | 74d723a | 2017-08-22 15:27:04 +0000 | [diff] [blame] | 35 | image: {{ .Values.image.mariadb }} |
| 36 | imagePullPolicy: {{ .Values.pullPolicy }} |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 37 | name: "mso-mariadb" |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 38 | env: |
| 39 | - name: MYSQL_ROOT_PASSWORD |
| 40 | value: password |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 41 | volumeMounts: |
yuryn | 8b3bc5a | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 42 | - mountPath: /etc/localtime |
| 43 | name: localtime |
| 44 | readOnly: true |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 45 | - mountPath: /etc/mysql/conf.d |
| 46 | name: mso-mariadb-conf |
mayankg2703 | 5cade6a | 2018-01-15 09:50:15 +0000 | [diff] [blame] | 47 | - mountPath: /docker-entrypoint-initdb.d/02-load-additional-changes.sh |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 48 | name: mso-mariadb-docker-entrypoint-initdb |
mayankg2703 | 5cade6a | 2018-01-15 09:50:15 +0000 | [diff] [blame] | 49 | subPath: 02-load-additional-changes.sh |
| 50 | - mountPath: /docker-entrypoint-initdb.d/01-load-default-sql-files.sh |
| 51 | name: mso-mariadb-docker-entrypoint-initdb |
| 52 | subPath: 01-load-default-sql-files.sh |
| 53 | - mountPath: /docker-entrypoint-initdb.d/db-sql-scripts/bulkload-files/automated-tests |
| 54 | name: mso-mariadb-docker-entrypoint-automated-tests |
| 55 | - mountPath: /docker-entrypoint-initdb.d/db-sql-scripts/bulkload-files/default |
| 56 | name: mso-mariadb-docker-entrypoint-bulkload-default |
| 57 | - mountPath: /docker-entrypoint-initdb.d/db-sql-scripts/bulkload-files/demo-dns |
| 58 | name: mso-mariadb-docker-entrypoint-demo-dns |
| 59 | - mountPath: /docker-entrypoint-initdb.d/db-sql-scripts/bulkload-files/demo-vfw |
| 60 | name: mso-mariadb-docker-entrypoint-demo-vfw |
| 61 | - mountPath: /docker-entrypoint-initdb.d/db-sql-scripts/camunda |
| 62 | name: mso-mariadb-docker-entrypoint-camunda |
| 63 | - mountPath: /docker-entrypoint-initdb.d/db-sql-scripts/main-schemas |
| 64 | name: mso-mariadb-docker-entrypoint-main-schemas |
BorislavG | 66a9a5c | 2017-09-06 15:12:46 +0300 | [diff] [blame] | 65 | - mountPath: /var/lib/mysql |
| 66 | name: mso-mariadb-data |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 67 | ports: |
| 68 | - containerPort: 3306 |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 69 | name: mso-mariadb |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 70 | readinessProbe: |
| 71 | tcpSocket: |
| 72 | port: 3306 |
| 73 | initialDelaySeconds: 5 |
| 74 | periodSeconds: 10 |
| 75 | volumes: |
mayankg2703 | 5cade6a | 2018-01-15 09:50:15 +0000 | [diff] [blame] | 76 | - name: mso-mariadb-conf |
| 77 | configMap: |
| 78 | name: mso-confd-configmap |
| 79 | - name: mso-mariadb-docker-entrypoint-initdb |
| 80 | configMap: |
| 81 | name: mso-docker-entry-initd-configmap |
| 82 | - name: mso-mariadb-docker-entrypoint-automated-tests |
| 83 | configMap: |
| 84 | name: mso-automated-tests-configmap |
| 85 | - name: mso-mariadb-docker-entrypoint-bulkload-default |
| 86 | configMap: |
| 87 | name: mso-bulkload-default-configmap |
| 88 | - name: mso-mariadb-docker-entrypoint-demo-dns |
| 89 | configMap: |
| 90 | name: mso-demo-dns-configmap |
| 91 | - name: mso-mariadb-docker-entrypoint-demo-vfw |
| 92 | configMap: |
| 93 | name: mso-demo-vfw-configmap |
| 94 | - name: mso-mariadb-docker-entrypoint-camunda |
| 95 | configMap: |
| 96 | name: mso-scripts-camunda-configmap |
| 97 | - name: mso-mariadb-docker-entrypoint-main-schemas |
| 98 | configMap: |
| 99 | name: mso-main-schemas-configmap |
yuryn | 8b3bc5a | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 100 | - name: localtime |
| 101 | hostPath: |
| 102 | path: /etc/localtime |
BorislavG | 66a9a5c | 2017-09-06 15:12:46 +0300 | [diff] [blame] | 103 | - name: mso-mariadb-data |
| 104 | persistentVolumeClaim: |
| 105 | claimName: mso-db |
Borislav Glozman | 5197e2e | 2017-07-24 10:45:28 +0300 | [diff] [blame] | 106 | imagePullSecrets: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 107 | - name: "{{ .Values.nsPrefix }}-docker-registry-key" |
mayankg2703 | 5cade6a | 2018-01-15 09:50:15 +0000 | [diff] [blame] | 108 | #{{ end }} |