blob: 560f48220d49685405414b70449472731a1e6806 [file] [log] [blame]
Mandeep Khindad6ea9872017-06-24 11:49:37 -04001apiVersion: extensions/v1beta1
2kind: Deployment
3metadata:
4 name: appc-dbhost
Mandeep Khinda0e8f8892017-08-25 03:31:17 +00005 namespace: "{{ .Values.nsPrefix }}-appc"
Mandeep Khindad6ea9872017-06-24 11:49:37 -04006spec:
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: '%'
kerenj6ca15a72017-08-23 12:05:23 +000021 image: {{ .Values.image.mysqlServer }}
22 imagePullPolicy: {{ .Values.pullPolicy }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040023 name: appc-db-container
24 volumeMounts:
yuryn8b3bc5a2017-09-13 19:21:03 +030025 - mountPath: /etc/localtime
26 name: localtime
27 readOnly: true
Mandeep Khindad6ea9872017-06-24 11:49:37 -040028 - 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:
yuryn8b3bc5a2017-09-13 19:21:03 +030039 - name: localtime
40 hostPath:
41 path: /etc/localtime
Mandeep Khindad6ea9872017-06-24 11:49:37 -040042 - name: appc-data
BorislavG66a9a5c2017-09-06 15:12:46 +030043 persistentVolumeClaim:
44 claimName: appc-db
Borislav Glozman5197e2e2017-07-24 10:45:28 +030045 imagePullSecrets:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000046 - name: "{{ .Values.nsPrefix }}-docker-registry-key"