blob: 828779eaa9444265df6e32be81050d1dade3b38f [file] [log] [blame]
yurynfcef9942017-10-26 17:10:50 +03001#{{ if not .Values.disablePortalPortaldb }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -04002apiVersion: extensions/v1beta1
3kind: Deployment
4metadata:
BorislavG8bfc6cf2018-02-27 15:04:26 +00005 name: portal-db
6 namespace: "{{ .Values.nsPrefix }}"
Mandeep Khindad6ea9872017-06-24 11:49:37 -04007spec:
vaibhav_16dec49302052018-02-15 10:00:06 +00008 replicas: {{ .Values.portalDbReplicas }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -04009 selector:
10 matchLabels:
11 app: portaldb
12 template:
13 metadata:
14 labels:
15 app: portaldb
BorislavG8bfc6cf2018-02-27 15:04:26 +000016 name: portal-db
Mandeep Khindad6ea9872017-06-24 11:49:37 -040017 spec:
18 containers:
Mandeep Khinda90ec5982017-10-17 18:08:34 +000019 - image: {{ .Values.image.portaldb}}
kerenjcbac0102017-08-23 10:22:33 +000020 imagePullPolicy: {{ .Values.pullPolicy }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040021 name: "portaldb"
22 env:
23 - name: MYSQL_HOST
BorislavG8bfc6cf2018-02-27 15:04:26 +000024 value: "portaldb.{{ .Values.nsPrefix }}"
Mandeep Khindad6ea9872017-06-24 11:49:37 -040025 - name: MYSQL_ROOT_PASSWORD
Mandeep Khinda90ec5982017-10-17 18:08:34 +000026 value: Aa123456
Mandeep Khindad6ea9872017-06-24 11:49:37 -040027 volumeMounts:
yuryn8b3bc5a2017-09-13 19:21:03 +030028 - mountPath: /etc/localtime
29 name: localtime
30 readOnly: true
Mandeep Khindad6ea9872017-06-24 11:49:37 -040031 - mountPath: /var/lib/mysql
32 name: portal-mariadb-data
33 ports:
34 - containerPort: 3306
35 name: portaldb
36 readinessProbe:
37 tcpSocket:
38 port: 3306
39 initialDelaySeconds: 5
40 periodSeconds: 10
41 volumes:
yuryn8b3bc5a2017-09-13 19:21:03 +030042 - name: localtime
43 hostPath:
44 path: /etc/localtime
Mandeep Khindad6ea9872017-06-24 11:49:37 -040045 - name: portal-mariadb-data
BorislavG66a9a5c2017-09-06 15:12:46 +030046 persistentVolumeClaim:
47 claimName: portal-db
Borislav Glozman5197e2e2017-07-24 10:45:28 +030048 imagePullSecrets:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000049 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
BorislavG91880652017-12-17 17:32:01 +020050#{{ end }}