blob: 7bc8a752148f22db60c61d7410f8c8f3a307e98a [file] [log] [blame]
Mandeep Khindad6ea9872017-06-24 11:49:37 -04001apiVersion: extensions/v1beta1
2kind: Deployment
3metadata:
4 name: sdnc-dbhost
Mandeep Khinda0e8f8892017-08-25 03:31:17 +00005 namespace: "{{ .Values.nsPrefix }}-sdnc"
Mandeep Khindad6ea9872017-06-24 11:49:37 -04006spec:
7 selector:
8 matchLabels:
9 app: sdnc-dbhost
10 template:
11 metadata:
12 labels:
13 app: sdnc-dbhost
14 name: sdnc-dbhost
15 spec:
16 containers:
17 - env:
18 - name: MYSQL_ROOT_PASSWORD
19 value: openECOMP1.0
20 - name: MYSQL_ROOT_HOST
21 value: '%'
kerenj9daad022017-08-23 13:35:43 +000022 image: {{ .Values.image.mysqlServer }}
23 imagePullPolicy: {{ .Values.pullPolicy }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040024 name: sdnc-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: sdnc-data
31 ports:
32 - containerPort: 3306
33 readinessProbe:
34 tcpSocket:
35 port: 3306
36 initialDelaySeconds: 5
37 periodSeconds: 10
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: sdnc-data
BorislavG66a9a5c2017-09-06 15:12:46 +030043 persistentVolumeClaim:
44 claimName: sdnc-db
Borislav Glozman5197e2e2017-07-24 10:45:28 +030045 imagePullSecrets:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000046 - name: "{{ .Values.nsPrefix }}-docker-registry-key"