blob: 607a0df81fbfa009492ffafd89be6171a192c979 [file] [log] [blame]
yurynfcef9942017-10-26 17:10:50 +03001#{{ if not .Values.disableAppcAppcDbhost }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -04002apiVersion: extensions/v1beta1
3kind: Deployment
4metadata:
5 name: appc-dbhost
Mandeep Khinda0e8f8892017-08-25 03:31:17 +00006 namespace: "{{ .Values.nsPrefix }}-appc"
Mandeep Khindad6ea9872017-06-24 11:49:37 -04007spec:
8 selector:
9 matchLabels:
10 app: appc-dbhost
11 template:
12 metadata:
13 labels:
14 app: appc-dbhost
15 spec:
16 containers:
17 - env:
18 - name: MYSQL_ROOT_PASSWORD
19 value: openECOMP1.0
20 - name: MYSQL_ROOT_HOST
21 value: '%'
kerenj6ca15a72017-08-23 12:05:23 +000022 image: {{ .Values.image.mysqlServer }}
23 imagePullPolicy: {{ .Values.pullPolicy }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040024 name: appc-db-container
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: appc-data
31 ports:
32 - containerPort: 3306
33 readinessProbe:
34 tcpSocket:
35 port: 3306
36 initialDelaySeconds: 5
37 periodSeconds: 10
38 restartPolicy: Always
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: appc-data
BorislavG66a9a5c2017-09-06 15:12:46 +030044 persistentVolumeClaim:
45 claimName: appc-db
Borislav Glozman5197e2e2017-07-24 10:45:28 +030046 imagePullSecrets:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000047 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
yurynfcef9942017-10-26 17:10:50 +030048#{{ end }}