blob: 801b7d40381f9c489e579d9401828baad536f5c1 [file] [log] [blame]
vaibhav_16dece04b2fe2018-03-22 09:07:12 +00001# 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
yurynfcef9942017-10-26 17:10:50 +030015#{{ if not .Values.disableMsoMariadb }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040016apiVersion: extensions/v1beta1
17kind: Deployment
18metadata:
BorislavG8bfc6cf2018-02-27 15:04:26 +000019 name: mso-mariadb
20 namespace: "{{ .Values.nsPrefix }}"
Mandeep Khindad6ea9872017-06-24 11:49:37 -040021spec:
vaibhav_16dec263ff0e2018-02-13 07:23:07 +000022 replicas: {{ .Values.dbReplicas }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040023 selector:
24 matchLabels:
BorislavG8bfc6cf2018-02-27 15:04:26 +000025 app: mso-mariadb
Mandeep Khindad6ea9872017-06-24 11:49:37 -040026 template:
27 metadata:
28 labels:
BorislavG8bfc6cf2018-02-27 15:04:26 +000029 app: mso-mariadb
30 name: mso-mariadb
Mandeep Khindad6ea9872017-06-24 11:49:37 -040031 spec:
BorislavG8bfc6cf2018-02-27 15:04:26 +000032 hostname: mso-mariadb
Mandeep Khindad6ea9872017-06-24 11:49:37 -040033 containers:
34 - args:
kerenj74d723a2017-08-22 15:27:04 +000035 image: {{ .Values.image.mariadb }}
36 imagePullPolicy: {{ .Values.pullPolicy }}
BorislavG8bfc6cf2018-02-27 15:04:26 +000037 name: "mso-mariadb"
Mandeep Khindad6ea9872017-06-24 11:49:37 -040038 env:
39 - name: MYSQL_ROOT_PASSWORD
40 value: password
Mandeep Khindad6ea9872017-06-24 11:49:37 -040041 volumeMounts:
yuryn8b3bc5a2017-09-13 19:21:03 +030042 - mountPath: /etc/localtime
43 name: localtime
44 readOnly: true
Mandeep Khindad6ea9872017-06-24 11:49:37 -040045 - mountPath: /etc/mysql/conf.d
46 name: mso-mariadb-conf
mayankg27035cade6a2018-01-15 09:50:15 +000047 - mountPath: /docker-entrypoint-initdb.d/02-load-additional-changes.sh
Mandeep Khindad6ea9872017-06-24 11:49:37 -040048 name: mso-mariadb-docker-entrypoint-initdb
mayankg27035cade6a2018-01-15 09:50:15 +000049 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
BorislavG66a9a5c2017-09-06 15:12:46 +030065 - mountPath: /var/lib/mysql
66 name: mso-mariadb-data
Mandeep Khindad6ea9872017-06-24 11:49:37 -040067 ports:
68 - containerPort: 3306
BorislavG8bfc6cf2018-02-27 15:04:26 +000069 name: mso-mariadb
Mandeep Khindad6ea9872017-06-24 11:49:37 -040070 readinessProbe:
71 tcpSocket:
72 port: 3306
73 initialDelaySeconds: 5
74 periodSeconds: 10
75 volumes:
mayankg27035cade6a2018-01-15 09:50:15 +000076 - 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
yuryn8b3bc5a2017-09-13 19:21:03 +0300100 - name: localtime
101 hostPath:
102 path: /etc/localtime
BorislavG66a9a5c2017-09-06 15:12:46 +0300103 - name: mso-mariadb-data
104 persistentVolumeClaim:
105 claimName: mso-db
Borislav Glozman5197e2e2017-07-24 10:45:28 +0300106 imagePullSecrets:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +0000107 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
mayankg27035cade6a2018-01-15 09:50:15 +0000108#{{ end }}