blob: e2723b5e457d2412073fd61af23c6d96ffb17b89 [file] [log] [blame]
yurynfcef9942017-10-26 17:10:50 +03001#{{ if not .Values.disableSdncSdncDbhost }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -04002apiVersion: extensions/v1beta1
3kind: Deployment
4metadata:
5 name: sdnc-dbhost
Mandeep Khinda0e8f8892017-08-25 03:31:17 +00006 namespace: "{{ .Values.nsPrefix }}-sdnc"
Mandeep Khindad6ea9872017-06-24 11:49:37 -04007spec:
8 selector:
9 matchLabels:
10 app: sdnc-dbhost
11 template:
12 metadata:
13 labels:
14 app: sdnc-dbhost
15 name: sdnc-dbhost
16 spec:
17 containers:
18 - env:
19 - name: MYSQL_ROOT_PASSWORD
20 value: openECOMP1.0
21 - name: MYSQL_ROOT_HOST
22 value: '%'
kerenj9daad022017-08-23 13:35:43 +000023 image: {{ .Values.image.mysqlServer }}
24 imagePullPolicy: {{ .Values.pullPolicy }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040025 name: sdnc-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: sdnc-data
32 ports:
33 - containerPort: 3306
34 readinessProbe:
35 tcpSocket:
36 port: 3306
37 initialDelaySeconds: 5
38 periodSeconds: 10
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: sdnc-data
BorislavG66a9a5c2017-09-06 15:12:46 +030044 persistentVolumeClaim:
45 claimName: sdnc-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 }}