blob: 758ee578f0bb14a802e0138184d792e016246b12 [file] [log] [blame]
yurynfcef9942017-10-26 17:10:50 +03001#{{ if not .Values.disableVidVidMariadb }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -04002apiVersion: extensions/v1beta1
3kind: Deployment
4metadata:
5 labels:
6 app: vid-mariadb
7 name: vid-mariadb
Mandeep Khinda0e8f8892017-08-25 03:31:17 +00008 namespace: "{{ .Values.nsPrefix }}-vid"
Mandeep Khindad6ea9872017-06-24 11:49:37 -04009spec:
10 selector:
11 matchLabels:
12 app: vid-mariadb
13 template:
14 metadata:
15 labels:
16 app: vid-mariadb
17 name: vid-mariadb
18 spec:
19 containers:
kerenjbf4b4a02017-08-23 07:39:14 +000020 - image: {{ .Values.image.mariadb }}
21 imagePullPolicy: {{ .Values.pullPolicy }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040022 name: vid-mariadb
23 env:
24 - name: MYSQL_DATABASE
Mandeep Khindaaa5ea3e2017-08-21 16:11:03 -040025 value: vid_openecomp_epsdk
Mandeep Khindad6ea9872017-06-24 11:49:37 -040026 - name: MYSQL_USER
27 value: vidadmin
28 - name: MYSQL_PASSWORD
29 value: Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U
30 - name: MYSQL_ROOT_PASSWORD
31 value: LF+tp_1WqgSY
32 volumeMounts:
yuryn8b3bc5a2017-09-13 19:21:03 +030033 - mountPath: /etc/localtime
34 name: localtime
35 readOnly: true
Mandeep Khindad6ea9872017-06-24 11:49:37 -040036 - mountPath: /var/lib/mysql
37 name: vid-mariadb-data
38 - mountPath: /docker-entrypoint-initdb.d/vid-pre-init.sql
Pramod46bec902018-01-17 12:36:06 +000039 name: vid-lfconfig
40 subPath: vid-pre-init.sql
Mandeep Khindad6ea9872017-06-24 11:49:37 -040041 - mountPath: /etc/mysql/my.cnf
Pramod46bec902018-01-17 12:36:06 +000042 name: vid-lfconfig
43 subPath: my.cnf
Mandeep Khindad6ea9872017-06-24 11:49:37 -040044 ports:
45 - containerPort: 3306
46 readinessProbe:
47 tcpSocket:
48 port: 3306
49 initialDelaySeconds: 5
50 periodSeconds: 10
51 volumes:
yuryn8b3bc5a2017-09-13 19:21:03 +030052 - name: localtime
53 hostPath:
54 path: /etc/localtime
Mandeep Khindad6ea9872017-06-24 11:49:37 -040055 - name: vid-mariadb-data
BorislavG66a9a5c2017-09-06 15:12:46 +030056 persistentVolumeClaim:
57 claimName: vid-db
Pramod46bec902018-01-17 12:36:06 +000058 - name: vid-lfconfig
59 configMap:
60 name: vid-lfconfig-configmap
61 defaultMode: 0755
62 items:
63 - key: vid-my.cnf
64 path: my.cnf
65 - key: vid-pre-init.sql
66 path: vid-pre-init.sql
Borislav Glozman5197e2e2017-07-24 10:45:28 +030067 imagePullSecrets:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000068 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
Pramod46bec902018-01-17 12:36:06 +000069#{{ end }}