blob: 542f8f4d42084e1d394640ca24d0189dd38f4ed9 [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:
25 - mountPath: /var/lib/mysql
26 name: appc-data
27 ports:
28 - containerPort: 3306
29 readinessProbe:
30 tcpSocket:
31 port: 3306
32 initialDelaySeconds: 5
33 periodSeconds: 10
34 restartPolicy: Always
35 volumes:
36 - name: appc-data
BorislavG66a9a5c2017-09-06 15:12:46 +030037 persistentVolumeClaim:
38 claimName: appc-db
Borislav Glozman5197e2e2017-07-24 10:45:28 +030039 imagePullSecrets:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000040 - name: "{{ .Values.nsPrefix }}-docker-registry-key"