1 # Copyright © 2017 Amdocs, Bell Canada
2 # Modifications Copyright © 2018 AT&T
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.
16 apiVersion: apps/v1beta1
19 name: {{ include "common.fullname" . }}
20 namespace: {{ include "common.namespace" . }}
22 app: {{ include "common.name" . }}
23 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
24 release: {{ .Release.Name }}
25 heritage: {{ .Release.Service }}
27 serviceName: {{ .Values.service.name }}
28 replicas: {{ .Values.replicaCount }}
32 maxUnavailable: {{ .Values.maxUnavailable }}
33 podManagementPolicy: Parallel
37 app: {{ include "common.name" . }}
38 release: {{ .Release.Name }}
41 preferredDuringSchedulingIgnoredDuringExecution:
49 - {{ include "common.name" . }}
50 topologyKey: "kubernetes.io/hostname"
52 - name: {{ include "common.name" . }}-seed-topics-apikeys
57 if [ -d /tmp/topics/version-2 ]; then
60 git clone -b {{ .Values.config.gerritBranch }} --single-branch {{ .Values.config.gerritProject }} /tmp/gerrit;
61 echo "Clone complete. Copying from /tmp/gerrit/oom-projects/data-zookeeper/* to /tmp/topics";
62 cp -var /tmp/gerrit/oom-topics/data-zookeeper/* /tmp/topics;
65 image: "{{ .Values.global.ubuntuInitRepository }}/{{ .Values.ubuntuInitImage }}"
66 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
68 - mountPath: /tmp/topics
71 - name: {{ include "common.name" . }}
72 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
73 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
75 {{ include "common.resources" . | indent 12 }}
77 - containerPort: {{ .Values.service.clientPort }}
78 name: {{ .Values.service.clientPortName }}
79 - containerPort: {{ .Values.service.serverPort }}
80 name: {{ .Values.service.serverPortName }}
81 - containerPort: {{ .Values.service.leaderElectionPort }}
82 name: {{ .Values.service.leaderElectionPortName }}
83 {{ if eq .Values.liveness.enabled true }}
89 - "zookeeper-ready.sh 2181"
90 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
91 periodSeconds: {{ .Values.liveness.periodSeconds }}
98 - "zookeeper-ready.sh 2181"
99 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
100 periodSeconds: {{ .Values.readiness.periodSeconds }}
103 value: "{{ .Values.replicaCount }}"
104 - name: ZK_INIT_LIMIT
105 value: "{{ .Values.zk.initLimit }}"
106 - name: ZK_SYNC_LIMIT
107 value: "{{ .Values.zk.syncLimit }}"
109 - mountPath: /etc/localtime
112 - mountPath: /var/lib/zookeeper/data
118 {{ if not .Values.persistence.enabled }}
119 - name: zookeeper-data
122 volumeClaimTemplates:
126 app: {{ include "common.fullname" . }}
127 chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
128 release: "{{ .Release.Name }}"
129 heritage: "{{ .Release.Service }}"
132 - {{ .Values.persistence.accessMode | quote }}
135 storage: {{ .Values.persistence.size | quote }}
138 release: "{{ .Release.Name }}"
139 app: {{ .Values.service.name }}
140 chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
141 heritage: "{{ .Release.Service }}"
144 - name: "{{ include "common.namespace" . }}-docker-registry-key"