blob: 0b29393cb54018084848ab1816575fc76bad959f [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:
vaibhav_16deca6719fe2018-02-14 09:48:43 +00008 replicas: {{ .Values.dbReplicas }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -04009 selector:
10 matchLabels:
11 app: appc-dbhost
12 template:
13 metadata:
14 labels:
15 app: appc-dbhost
16 spec:
17 containers:
18 - env:
19 - name: MYSQL_ROOT_PASSWORD
20 value: openECOMP1.0
21 - name: MYSQL_ROOT_HOST
22 value: '%'
kerenj6ca15a72017-08-23 12:05:23 +000023 image: {{ .Values.image.mysqlServer }}
24 imagePullPolicy: {{ .Values.pullPolicy }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040025 name: appc-db-container
26 volumeMounts:
yuryn8b3bc5a2017-09-13 19:21:03 +030027 - mountPath: /etc/localtime
28 name: localtime
29 readOnly: true
Mandeep Khindad6ea9872017-06-24 11:49:37 -040030 - mountPath: /var/lib/mysql
31 name: appc-data
32 ports:
33 - containerPort: 3306
34 readinessProbe:
35 tcpSocket:
36 port: 3306
37 initialDelaySeconds: 5
38 periodSeconds: 10
39 restartPolicy: Always
40 volumes:
yuryn8b3bc5a2017-09-13 19:21:03 +030041 - name: localtime
42 hostPath:
43 path: /etc/localtime
Mandeep Khindad6ea9872017-06-24 11:49:37 -040044 - name: appc-data
BorislavG66a9a5c2017-09-06 15:12:46 +030045 persistentVolumeClaim:
46 claimName: appc-db
Borislav Glozman5197e2e2017-07-24 10:45:28 +030047 imagePullSecrets:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000048 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
vaibhav_16deca6719fe2018-02-14 09:48:43 +000049#{{ end }}