blob: 46a6433b7ecd6cad6fc46688fa1462e3c66c658f [file] [log] [blame]
yurynfcef9942017-10-26 17:10:50 +03001#{{ if not .Values.disableClampClampMariadb }}
Dusan Rozmanf776f3d2017-09-18 13:07:56 -04002apiVersion: extensions/v1beta1
3kind: Deployment
4metadata:
5 name: clamp-mariadb
6 namespace: "{{ .Values.nsPrefix }}-clamp"
7spec:
8 replicas: 1
9 selector:
10 matchLabels:
11 app: clamp-mariadb
12 template:
13 metadata:
14 labels:
15 app: clamp-mariadb
16 name: clamp-mariadb
17 spec:
18 hostname: clamp-mariadb
19 containers:
20 - args:
21 image: {{ .Values.image.mariadbImage }}:{{ .Values.image.mariadbVersion }}
22 imagePullPolicy: {{ .Values.pullPolicy }}
23 name: "clamp-mariadb"
24 env:
25 - name: MYSQL_ROOT_PASSWORD
26 value: {{ .Values.mysqlPassword }}
27 volumeMounts:
28 - mountPath: /docker-entrypoint-initdb.d
29 name: docker-entrypoint-initdb
30 - mountPath: /etc/mysql/conf.d
31 name: clamp-mariadb-conf
32 - mountPath: /var/lib/mysql
33 name: clamp-mariadb-data
34 readinessProbe:
35 tcpSocket:
36 port: 3306
37 initialDelaySeconds: 5
38 periodSeconds: 10
39 volumes:
40 - name: docker-entrypoint-initdb
41 hostPath:
42 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/clamp/mariadb/docker-entrypoint-initdb.d
43 - name: clamp-mariadb-conf
44 hostPath:
45 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/clamp/mariadb/conf.d
46 - name: clamp-mariadb-data
47 persistentVolumeClaim:
48 claimName: clamp-db
49 imagePullSecrets:
50 - name: {{ .Values.nsPrefix }}-docker-registry-key
yurynfcef9942017-10-26 17:10:50 +030051#{{ end }}