blob: 1a2ecbae66d58a5fd63c4d7474f965de1fb71c29 [file] [log] [blame]
Mandeep Khindad6ea9872017-06-24 11:49:37 -04001apiVersion: extensions/v1beta1
2kind: Deployment
3metadata:
4 name: sdnc-dbhost
kerenj9daad022017-08-23 13:35:43 +00005 namespace: {{ .Values.NS }}
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:
26 - mountPath: /var/lib/mysql
27 name: sdnc-data
28 ports:
29 - containerPort: 3306
30 readinessProbe:
31 tcpSocket:
32 port: 3306
33 initialDelaySeconds: 5
34 periodSeconds: 10
35 volumes:
36 - name: sdnc-data
37 hostPath:
Munir Ahmade94258e2017-08-17 12:04:14 -040038 path: /dockerdata-nfs/onapdemo/sdnc/data
Borislav Glozman5197e2e2017-07-24 10:45:28 +030039 imagePullSecrets:
40 - name: onap-docker-registry-key