blob: f4e46ab06258102dd0a4f5fbd12fc86cc07502f2 [file] [log] [blame]
Mandeep Khindad6ea9872017-06-24 11:49:37 -04001apiVersion: extensions/v1beta1
2kind: Deployment
3metadata:
4 name: portaldb
Mandeep Khinda0e8f8892017-08-25 03:31:17 +00005 namespace: "{{ .Values.nsPrefix }}-portal"
Mandeep Khindad6ea9872017-06-24 11:49:37 -04006spec:
7 selector:
8 matchLabels:
9 app: portaldb
10 template:
11 metadata:
12 labels:
13 app: portaldb
14 name: portaldb
15 spec:
16 containers:
kerenjcbac0102017-08-23 10:22:33 +000017 - image: {{ .Values.image.portaldb}}
18 imagePullPolicy: {{ .Values.pullPolicy }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040019 name: "portaldb"
20 env:
21 - name: MYSQL_HOST
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000022 value: "portaldb.{{ .Values.nsPrefix }}-portal"
Mandeep Khindad6ea9872017-06-24 11:49:37 -040023 - name: MYSQL_ROOT_PASSWORD
24 value: password
25 volumeMounts:
yuryn8b3bc5a2017-09-13 19:21:03 +030026 - mountPath: /etc/localtime
27 name: localtime
28 readOnly: true
Mandeep Khindad6ea9872017-06-24 11:49:37 -040029 - mountPath: /var/lib/mysql
30 name: portal-mariadb-data
31 ports:
32 - containerPort: 3306
33 name: portaldb
34 readinessProbe:
35 tcpSocket:
36 port: 3306
37 initialDelaySeconds: 5
38 periodSeconds: 10
39 volumes:
yuryn8b3bc5a2017-09-13 19:21:03 +030040 - name: localtime
41 hostPath:
42 path: /etc/localtime
Mandeep Khindad6ea9872017-06-24 11:49:37 -040043 - name: portal-mariadb-data
BorislavG66a9a5c2017-09-06 15:12:46 +030044 persistentVolumeClaim:
45 claimName: portal-db
Borislav Glozman5197e2e2017-07-24 10:45:28 +030046 imagePullSecrets:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000047 - name: "{{ .Values.nsPrefix }}-docker-registry-key"