blob: fafcad2772d43a06c980cab5dad72488694926b6 [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:
5 name: portaldb
Mandeep Khinda0e8f8892017-08-25 03:31:17 +00006 namespace: "{{ .Values.nsPrefix }}-portal"
Mandeep Khindad6ea9872017-06-24 11:49:37 -04007spec:
8 selector:
9 matchLabels:
10 app: portaldb
11 template:
12 metadata:
13 labels:
14 app: portaldb
15 name: portaldb
16 spec:
17 containers:
Mandeep Khinda90ec5982017-10-17 18:08:34 +000018 - image: {{ .Values.image.portaldb}}
kerenjcbac0102017-08-23 10:22:33 +000019 imagePullPolicy: {{ .Values.pullPolicy }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040020 name: "portaldb"
21 env:
22 - name: MYSQL_HOST
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000023 value: "portaldb.{{ .Values.nsPrefix }}-portal"
Mandeep Khindad6ea9872017-06-24 11:49:37 -040024 - name: MYSQL_ROOT_PASSWORD
Mandeep Khinda90ec5982017-10-17 18:08:34 +000025 value: Aa123456
Mandeep Khindad6ea9872017-06-24 11:49:37 -040026 volumeMounts:
yuryn8b3bc5a2017-09-13 19:21:03 +030027 - mountPath: /etc/localtime
28 name: localtime
29 readOnly: true
Mandeep Khindad6ea9872017-06-24 11:49:37 -040030 - mountPath: /var/lib/mysql
31 name: portal-mariadb-data
32 ports:
33 - containerPort: 3306
34 name: portaldb
35 readinessProbe:
36 tcpSocket:
37 port: 3306
38 initialDelaySeconds: 5
39 periodSeconds: 10
40 volumes:
yuryn8b3bc5a2017-09-13 19:21:03 +030041 - name: localtime
42 hostPath:
43 path: /etc/localtime
Mandeep Khindad6ea9872017-06-24 11:49:37 -040044 - name: portal-mariadb-data
BorislavG66a9a5c2017-09-06 15:12:46 +030045 persistentVolumeClaim:
46 claimName: portal-db
Borislav Glozman5197e2e2017-07-24 10:45:28 +030047 imagePullSecrets:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000048 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
BorislavG91880652017-12-17 17:32:01 +020049#{{ end }}