blob: 41bfb90b744209ed4df662fad4ba13c4acabdb9c [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
BorislavG8bfc6cf2018-02-27 15:04:26 +00008 namespace: "{{ .Values.nsPrefix }}"
Mandeep Khindad6ea9872017-06-24 11:49:37 -04009spec:
vaibhav_16dec49302052018-02-15 10:00:06 +000010 replicas: {{ .Values.vidMariaDbReplicas }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040011 selector:
12 matchLabels:
13 app: vid-mariadb
14 template:
15 metadata:
16 labels:
17 app: vid-mariadb
18 name: vid-mariadb
19 spec:
20 containers:
kerenjbf4b4a02017-08-23 07:39:14 +000021 - image: {{ .Values.image.mariadb }}
22 imagePullPolicy: {{ .Values.pullPolicy }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040023 name: vid-mariadb
24 env:
25 - name: MYSQL_DATABASE
Mandeep Khindaaa5ea3e2017-08-21 16:11:03 -040026 value: vid_openecomp_epsdk
Mandeep Khindad6ea9872017-06-24 11:49:37 -040027 - name: MYSQL_USER
28 value: vidadmin
29 - name: MYSQL_PASSWORD
30 value: Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U
31 - name: MYSQL_ROOT_PASSWORD
32 value: LF+tp_1WqgSY
33 volumeMounts:
yuryn8b3bc5a2017-09-13 19:21:03 +030034 - mountPath: /etc/localtime
35 name: localtime
36 readOnly: true
Mandeep Khindad6ea9872017-06-24 11:49:37 -040037 - mountPath: /var/lib/mysql
38 name: vid-mariadb-data
39 - mountPath: /docker-entrypoint-initdb.d/vid-pre-init.sql
Pramod46bec902018-01-17 12:36:06 +000040 name: vid-lfconfig
41 subPath: vid-pre-init.sql
Mandeep Khindad6ea9872017-06-24 11:49:37 -040042 - mountPath: /etc/mysql/my.cnf
Pramod46bec902018-01-17 12:36:06 +000043 name: vid-lfconfig
44 subPath: my.cnf
Mandeep Khindad6ea9872017-06-24 11:49:37 -040045 ports:
46 - containerPort: 3306
47 readinessProbe:
48 tcpSocket:
49 port: 3306
50 initialDelaySeconds: 5
51 periodSeconds: 10
52 volumes:
yuryn8b3bc5a2017-09-13 19:21:03 +030053 - name: localtime
54 hostPath:
55 path: /etc/localtime
Mandeep Khindad6ea9872017-06-24 11:49:37 -040056 - name: vid-mariadb-data
BorislavG66a9a5c2017-09-06 15:12:46 +030057 persistentVolumeClaim:
58 claimName: vid-db
Pramod46bec902018-01-17 12:36:06 +000059 - name: vid-lfconfig
60 configMap:
61 name: vid-lfconfig-configmap
62 defaultMode: 0755
63 items:
64 - key: vid-my.cnf
65 path: my.cnf
66 - key: vid-pre-init.sql
67 path: vid-pre-init.sql
Borislav Glozman5197e2e2017-07-24 10:45:28 +030068 imagePullSecrets:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000069 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
Pramod46bec902018-01-17 12:36:06 +000070#{{ end }}