1 # Copyright © 2017 Amdocs, Bell Canada
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
7 # http://www.apache.org/licenses/LICENSE-2.0
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
15 apiVersion: extensions/v1beta1
18 name: {{ include "common.fullname" . }}
19 namespace: {{ include "common.namespace" . }}
21 app: {{ include "common.name" . }}
22 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
23 release: {{ .Release.Name }}
24 heritage: {{ .Release.Service }}
26 replicas: {{ .Values.replicaCount }}
30 app: {{ include "common.name" . }}
31 release: {{ .Release.Name }}
35 - name: {{ .Chart.Name }}
36 image: {{ .Values.global.repository | default .Values.repository }}/{{ .Values.image }}
37 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
39 - containerPort: {{ .Values.service.internalPort }}
40 # disable liveness probe when breakpoints set in debugger
41 # so K8s doesn't restart unresponsive container
42 {{- if eq .Values.liveness.enabled true }}
45 port: {{ .Values.service.internalPort }}
46 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
47 periodSeconds: {{ .Values.liveness.periodSeconds }}
51 port: {{ .Values.service.internalPort }}
52 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
53 periodSeconds: {{ .Values.readiness.periodSeconds }}
55 - name: MYSQL_ROOT_PASSWORD
58 name: {{ template "common.fullname" . }}
61 - mountPath: /var/lib/mysql
63 - mountPath: /etc/localtime
66 - mountPath: /etc/mysql/conf.d
68 - mountPath: /docker-entrypoint-initdb.d/02-load-additional-changes.sh
69 name: mariadb-docker-entrypoint-initdb
70 subPath: 02-load-additional-changes.sh
71 - mountPath: /docker-entrypoint-initdb.d/01-load-default-sql-files.sh
72 name: mariadb-docker-entrypoint-initdb
73 subPath: 01-load-default-sql-files.sh
74 - mountPath: /docker-entrypoint-initdb.d/db-sql-scripts/bulkload-files/automated-tests
75 name: mariadb-docker-entrypoint-automated-tests
76 - mountPath: /docker-entrypoint-initdb.d/db-sql-scripts/bulkload-files/default
77 name: mariadb-docker-entrypoint-bulkload-default
78 - mountPath: /docker-entrypoint-initdb.d/db-sql-scripts/bulkload-files/demo-dns
79 name: mariadb-docker-entrypoint-demo-dns
80 - mountPath: /docker-entrypoint-initdb.d/db-sql-scripts/bulkload-files/demo-vfw
81 name: mariadb-docker-entrypoint-demo-vfw
82 - mountPath: /docker-entrypoint-initdb.d/db-sql-scripts/camunda
83 name: mariadb-docker-entrypoint-camunda
84 - mountPath: /docker-entrypoint-initdb.d/db-sql-scripts/main-schemas
85 name: mariadb-docker-entrypoint-main-schemas
87 {{ toYaml .Values.resources | indent 12 }}
88 {{- if .Values.nodeSelector }}
90 {{ toYaml .Values.nodeSelector | indent 10 }}
92 {{- if .Values.affinity }}
94 {{ toYaml .Values.affinity | indent 10 }}
97 {{- if .Values.persistence.enabled }}
99 persistentVolumeClaim:
100 claimName: {{ include "common.fullname" . }}
106 name: confd-configmap
107 - name: mariadb-docker-entrypoint-initdb
109 name: docker-entry-initd-configmap
110 - name: mariadb-docker-entrypoint-automated-tests
112 name: automated-tests-configmap
113 - name: mariadb-docker-entrypoint-bulkload-default
115 name: bulkload-default-configmap
116 - name: mariadb-docker-entrypoint-demo-dns
118 name: demo-dns-configmap
119 - name: mariadb-docker-entrypoint-demo-vfw
121 name: demo-vfw-configmap
122 - name: mariadb-docker-entrypoint-camunda
124 name: scripts-camunda-configmap
125 - name: mariadb-docker-entrypoint-main-schemas
127 name: main-schemas-configmap
132 - name: "{{ include "common.namespace" . }}-docker-registry-key"