1 apiVersion: extensions/v1beta1
4 name: {{ include "common.fullname" . }}
5 namespace: {{ include "common.namespace" . }}
7 app: {{ include "common.name" . }}
8 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
9 release: {{ .Release.Name }}
10 heritage: {{ .Release.Service }}
12 replicas: {{ .Values.replicaCount }}
16 app: {{ include "common.name" . }}
17 release: {{ .Release.Name }}
20 - name: {{ include "common.name" . }}
21 image: {{ .Values.global.repository | default .Values.repository }}/{{ .Values.image }}
22 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
24 - containerPort: {{ .Values.service.internalPort }}
25 # disable liveness probe when breakpoints set in debugger
26 # so K8s doesn't restart unresponsive container
27 {{- if eq .Values.liveness.enabled true }}
30 port: {{ .Values.service.internalPort }}
31 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
32 periodSeconds: {{ .Values.liveness.periodSeconds }}
36 port: {{ .Values.service.internalPort }}
37 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
38 periodSeconds: {{ .Values.readiness.periodSeconds }}
40 - name: MYSQL_ROOT_PASSWORD
43 name: {{ template "common.fullname" . }}
46 - mountPath: /docker-entrypoint-initdb.d/load-sql-files-tests-automation.sh
47 name: docker-entrypoint-initdb
48 subPath: load-sql-files-tests-automation.sh
49 - mountPath: /etc/localtime
52 - mountPath: /docker-entrypoint-initdb.d/drop/
53 name: docker-entrypoint-clds-drop
54 - mountPath: /docker-entrypoint-initdb.d/bulkload/
55 name: docker-entrypoint-bulkload
56 - mountPath: /etc/mysql/conf.d/conf1/
57 name: clamp-mariadb-conf
58 - mountPath: /var/lib/mysql
59 name: clamp-mariadb-data
61 {{ toYaml .Values.resources | indent 12 }}
62 {{- if .Values.nodeSelector }}
64 {{ toYaml .Values.nodeSelector | indent 10 }}
66 {{- if .Values.affinity }}
68 {{ toYaml .Values.affinity | indent 10 }}
71 {{- if .Values.persistence.enabled }}
72 - name: clamp-mariadb-data
73 persistentVolumeClaim:
74 claimName: {{ include "common.fullname" . }}
78 - name: docker-entrypoint-initdb
80 name: clamp-entrypoint-initdb-configmap
81 - name: docker-entrypoint-clds-drop
83 name: clamp-entrypoint-drop-configmap
84 - name: docker-entrypoint-bulkload
86 name: clamp-entrypoint-bulkload-configmap
87 - name: clamp-mariadb-conf
89 name: clamp-mariadb-conf-configmap
94 - name: "{{ include "common.namespace" . }}-docker-registry-key"