blob: e1158a2461c30a6c3a5868cd2080bfdf3cff7bbd [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.disablePortalPortaldb }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040016apiVersion: extensions/v1beta1
17kind: Deployment
18metadata:
BorislavG8bfc6cf2018-02-27 15:04:26 +000019 name: portal-db
20 namespace: "{{ .Values.nsPrefix }}"
Mandeep Khindad6ea9872017-06-24 11:49:37 -040021spec:
vaibhav_16dec49302052018-02-15 10:00:06 +000022 replicas: {{ .Values.portalDbReplicas }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040023 selector:
24 matchLabels:
25 app: portaldb
26 template:
27 metadata:
28 labels:
29 app: portaldb
BorislavG8bfc6cf2018-02-27 15:04:26 +000030 name: portal-db
Mandeep Khindad6ea9872017-06-24 11:49:37 -040031 spec:
32 containers:
Mandeep Khinda90ec5982017-10-17 18:08:34 +000033 - image: {{ .Values.image.portaldb}}
kerenjcbac0102017-08-23 10:22:33 +000034 imagePullPolicy: {{ .Values.pullPolicy }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040035 name: "portaldb"
36 env:
37 - name: MYSQL_HOST
BorislavG8bfc6cf2018-02-27 15:04:26 +000038 value: "portaldb.{{ .Values.nsPrefix }}"
Mandeep Khindad6ea9872017-06-24 11:49:37 -040039 - name: MYSQL_ROOT_PASSWORD
Mandeep Khinda90ec5982017-10-17 18:08:34 +000040 value: Aa123456
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: /var/lib/mysql
46 name: portal-mariadb-data
47 ports:
48 - containerPort: 3306
49 name: portaldb
50 readinessProbe:
51 tcpSocket:
52 port: 3306
53 initialDelaySeconds: 5
54 periodSeconds: 10
55 volumes:
yuryn8b3bc5a2017-09-13 19:21:03 +030056 - name: localtime
57 hostPath:
58 path: /etc/localtime
Mandeep Khindad6ea9872017-06-24 11:49:37 -040059 - name: portal-mariadb-data
BorislavG66a9a5c2017-09-06 15:12:46 +030060 persistentVolumeClaim:
61 claimName: portal-db
Borislav Glozman5197e2e2017-07-24 10:45:28 +030062 imagePullSecrets:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000063 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
BorislavG91880652017-12-17 17:32:01 +020064#{{ end }}