Containers time zone sync
[oom.git] / kubernetes / appc / templates / db-deployment.yaml
1 apiVersion: extensions/v1beta1
2 kind: Deployment
3 metadata:
4   name: appc-dbhost
5   namespace: "{{ .Values.nsPrefix }}-appc"
6 spec:
7   selector:
8     matchLabels:
9       app: appc-dbhost
10   template:
11     metadata:
12       labels:
13         app: appc-dbhost
14     spec:
15       containers:
16       - env:
17         - name: MYSQL_ROOT_PASSWORD
18           value: openECOMP1.0
19         - name: MYSQL_ROOT_HOST
20           value: '%'
21         image: {{ .Values.image.mysqlServer }}
22         imagePullPolicy: {{ .Values.pullPolicy }}
23         name: appc-db-container
24         volumeMounts:
25         - mountPath: /etc/localtime
26           name: localtime
27           readOnly: true
28         - mountPath: /var/lib/mysql
29           name: appc-data
30         ports:
31         - containerPort: 3306
32         readinessProbe:
33           tcpSocket:
34             port: 3306
35           initialDelaySeconds: 5
36           periodSeconds: 10
37       restartPolicy: Always
38       volumes:
39       - name: localtime
40         hostPath:
41           path: /etc/localtime
42       - name: appc-data
43         persistentVolumeClaim:
44           claimName: appc-db
45       imagePullSecrets:
46       - name: "{{ .Values.nsPrefix }}-docker-registry-key"