blob: a31c6a24b2a0c95b5c5aaf6e743525c77bbe9db4 [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:
26 - mountPath: /var/lib/mysql
27 name: portal-mariadb-data
28 ports:
29 - containerPort: 3306
30 name: portaldb
31 readinessProbe:
32 tcpSocket:
33 port: 3306
34 initialDelaySeconds: 5
35 periodSeconds: 10
36 volumes:
37 - name: portal-mariadb-data
38 hostPath:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000039 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/portal/mariadb/data
Borislav Glozman5197e2e2017-07-24 10:45:28 +030040 imagePullSecrets:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000041 - name: "{{ .Values.nsPrefix }}-docker-registry-key"