2 # Copyright © 2017 Amdocs, AT&T, Bell Canada
4 # # Licensed under the Apache License, Version 2.0 (the "License");
5 # # you may not use this file except in compliance with the License.
6 # # You may obtain a copy of the License at
8 # # http://www.apache.org/licenses/LICENSE-2.0
10 # # Unless required by applicable law or agreed to in writing, software
11 # # distributed under the License is distributed on an "AS IS" BASIS,
12 # # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # # See the License for the specific language governing permissions and
14 # # limitations under the License.
19 name: {{ include "common.fullname" . }}
20 namespace: {{ include "common.namespace" . }}
22 app: {{ include "common.name" . }}
23 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
24 release: {{ include "common.release" . }}
25 heritage: {{ .Release.Service }}
27 serviceName: {{ .Values.service.name }}
28 replicas: {{ .Values.replicaCount }}
31 app: {{ include "common.name" . }}
35 app: {{ include "common.name" . }}
36 release: {{ include "common.release" . }}
40 - name: {{ include "common.name" . }}
41 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
42 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
47 /opt/scripts/redis-cluster-config.sh
49 - containerPort: {{ .Values.service.internalPort }}
50 name: {{ .Values.service.name }}
51 - containerPort: {{ .Values.service.internalPort2 }}
52 name: {{ .Values.service.name2 }}
53 # disable liveness probe when breakpoints set in debugger
54 # so K8s doesn't restart unresponsive container
55 {{- if eq .Values.liveness.enabled true }}
61 - "redis-cli -h $(hostname) ping"
62 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
63 periodSeconds: {{ .Values.liveness.periodSeconds }}
64 timeoutSeconds: {{ .Values.liveness.timeoutSeconds }}
68 port: {{ .Values.service.internalPort }}
69 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
70 periodSeconds: {{ .Values.readiness.periodSeconds }}
73 - mountPath: /etc/localtime
77 name: {{ include "common.fullname" . }}-config
79 name: {{ include "common.fullname" . }}-data
80 - mountPath: /opt/scripts
81 name: {{ include "common.fullname" . }}-scripts
83 {{ include "common.resources" . | indent 12 }}
84 {{- if .Values.nodeSelector }}
86 {{ toYaml .Values.nodeSelector | indent 10 }}
88 {{- if .Values.affinity }}
90 {{ toYaml .Values.affinity | indent 10 }}
93 - name: {{ include "common.fullname" . }}-config
95 name: {{ include "common.fullname" . }}
99 - name: {{ include "common.fullname" . }}-scripts
101 name: {{ include "common.fullname" . }}-scripts
106 {{- if not .Values.persistence.enabled }}
107 - name: {{ include "common.fullname" . }}-data
111 - name: "{{ include "common.namespace" . }}-docker-registry-key"
112 {{- if .Values.persistence.enabled }}
113 volumeClaimTemplates:
115 name: {{ include "common.fullname" . }}-data
117 name: {{ include "common.fullname" . }}
120 - {{ .Values.persistence.accessMode | quote }}
121 storageClassName: {{ include "common.storageClass" . }}
124 storage: {{ .Values.persistence.size | quote}}