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 ################################################################################
19 apiVersion: apps/v1beta1
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 }}
35 maxUnavailable: {{ .Values.maxUnavailable }}
36 podManagementPolicy: Parallel
40 app: {{ include "common.name" . }}
41 release: {{ .Release.Name }}
44 preferredDuringSchedulingIgnoredDuringExecution:
52 - {{ include "common.name" . }}
53 topologyKey: "kubernetes.io/hostname"
54 {{- if .Values.nodeAffinity }}
56 {{ toYaml .Values.nodeAffinity | indent 10 }}
59 - name: {{ include "common.name" . }}-permission-fixer
64 chown -R 1000:1000 /tmp/zookeeper/apikeys;
65 image: "{{ .Values.busyBoxRepository }}/{{ .Values.busyBoxImage }}"
66 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
68 - mountPath: /tmp/zookeeper/apikeys
71 - name: {{ include "common.name" . }}
72 image: "{{ .Values.onapRepository }}/{{ .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
114 {{- if .Values.tolerations }}
116 {{ toYaml .Values.tolerations | indent 10 }}
122 {{ if not .Values.persistence.enabled }}
123 - name: zookeeper-data
126 volumeClaimTemplates:
130 app: {{ include "common.fullname" . }}
131 chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
132 release: "{{ .Release.Name }}"
133 heritage: "{{ .Release.Service }}"
136 - {{ .Values.persistence.accessMode | quote }}
139 storage: {{ .Values.persistence.size | quote }}
142 release: "{{ .Release.Name }}"
143 app: {{ .Values.service.name }}
144 chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
145 heritage: "{{ .Release.Service }}"
148 - name: "{{ include "common.namespace" . }}-docker-registry-key"