1 ################################################################################
2 # Copyright (c) 2019 AT&T Intellectual Property. #
3 # Copyright (c) 2019 Nokia. #
5 # Licensed under the Apache License, Version 2.0 (the "License"); #
6 # you may not use this file except in compliance with the License. #
7 # You may obtain a copy of the License at #
9 # http://www.apache.org/licenses/LICENSE-2.0 #
11 # Unless required by applicable law or agreed to in writing, software #
12 # distributed under the License is distributed on an "AS IS" BASIS, #
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #
14 # See the License for the specific language governing permissions and #
15 # limitations under the License. #
16 ################################################################################
22 name: {{ include "common.fullname" . }}
23 namespace: {{ include "common.namespace" . }}
25 app: {{ include "common.name" . }}
26 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
27 release: {{ .Release.Name }}
28 heritage: {{ .Release.Service }}
30 serviceName: {{ .Values.service.name }}
31 replicas: {{ .Values.replicaCount }}
34 app: {{ include "common.name" . }}
35 release: {{ .Release.Name }}
39 maxUnavailable: {{ .Values.rollingUpdate.maxUnavailable }}
40 podManagementPolicy: Parallel
44 app: {{ include "common.name" . }}
45 release: {{ .Release.Name }}
48 preferredDuringSchedulingIgnoredDuringExecution:
56 - {{ include "common.name" . }}
57 topologyKey: "kubernetes.io/hostname"
58 {{- if .Values.nodeAffinity }}
60 {{ toYaml .Values.nodeAffinity | indent 10 }}
63 - name: {{ include "common.name" . }}-permission-fixer
68 mkdir -p /tmp/zookeeper/apikeys/version-2 && chown -R 1000:1000 /tmp/zookeeper/apikeys;
69 image: "{{ .Values.busyBoxRepository }}/{{ .Values.busyBoxImage }}"
70 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
72 - mountPath: /tmp/zookeeper/apikeys
75 - name: {{ include "common.name" . }}
76 image: "{{ .Values.onapRepository }}/{{ .Values.image }}"
77 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
79 {{ include "common.resources" . | indent 12 }}
81 - containerPort: {{ .Values.service.clientPort }}
82 name: {{ .Values.service.clientPortName }}
83 - containerPort: {{ .Values.service.serverPort }}
84 name: {{ .Values.service.serverPortName }}
85 - containerPort: {{ .Values.service.leaderElectionPort }}
86 name: {{ .Values.service.leaderElectionPortName }}
87 {{ if eq .Values.liveness.enabled true }}
93 - "zookeeper-ready.sh 2181"
94 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
95 periodSeconds: {{ .Values.liveness.periodSeconds }}
102 - "zookeeper-ready.sh 2181"
103 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
104 periodSeconds: {{ .Values.readiness.periodSeconds }}
107 value: "{{ .Values.replicaCount }}"
108 - name: ZK_INIT_LIMIT
109 value: "{{ .Values.zk.initLimit }}"
110 - name: ZK_SYNC_LIMIT
111 value: "{{ .Values.zk.syncLimit }}"
113 - mountPath: /etc/localtime
116 - mountPath: /var/lib/zookeeper/data
118 {{- if .Values.tolerations }}
120 {{ toYaml .Values.tolerations | indent 10 }}
126 {{ if not .Values.persistence.enabled }}
127 - name: zookeeper-data
130 volumeClaimTemplates:
134 app: {{ include "common.fullname" . }}
135 chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
136 release: "{{ .Release.Name }}"
137 heritage: "{{ .Release.Service }}"
140 - {{ .Values.persistence.accessMode | quote }}
143 storage: {{ .Values.persistence.size | quote }}
146 release: "{{ .Release.Name }}"
147 app: {{ .Values.service.name }}
148 chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
149 heritage: "{{ .Release.Service }}"
152 - name: "docker-reg-cred"