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: extensions/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 replicas: {{ .Values.replicaCount }}
31 app: {{ include "common.name" . }}
32 release: {{ .Release.Name }}
35 - name: {{ include "common.name" . }}-seed-kafka-topics
40 if [ -d /tmp/topics/ECOMP-PORTAL-INBOX-0 ]; then
43 git clone -b {{ .Values.config.gerritBranch }} --single-branch {{ .Values.config.gerritProject }} /tmp/gerrit;
44 echo "Clone complete. Copying from /tmp/gerrit/oom-projects/data-kafka/kafka-logs/* to /tmp/topics";
45 cp -var /tmp/gerrit/oom-topics/data-kafka/kafka-logs/* /tmp/topics;
48 image: "{{ .Values.global.ubuntuInitRepository }}/{{ .Values.ubuntuInitImage }}"
49 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
51 - mountPath: /tmp/topics
57 - {{ .Values.zookeeper.name }}
63 fieldPath: metadata.namespace
64 image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
65 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
66 name: {{ include "common.name" . }}-readiness
68 - name: {{ include "common.name" . }}
69 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
70 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
72 {{ include "common.resources" . | indent 12 }}
74 - containerPort: {{ .Values.service.internalPort }}
75 {{ if eq .Values.liveness.enabled true }}
78 port: {{ .Values.service.internalPort }}
79 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
80 periodSeconds: {{ .Values.liveness.periodSeconds }}
84 port: {{ .Values.service.internalPort }}
85 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
86 periodSeconds: {{ .Values.readiness.periodSeconds }}
88 - name: KAFKA_ZOOKEEPER_CONNECT
89 value: "{{.Values.zookeeper.name}}:{{.Values.zookeeper.port}}"
90 - name: KAFKA_LISTENER_SECURITY_PROTOCOL_MAP
91 value: "INTERNAL_PLAINTEXT:PLAINTEXT,EXTERNAL_PLAINTEXT:PLAINTEXT"
92 - name: KAFKA_ADVERTISED_LISTENERS
93 value: "INTERNAL_PLAINTEXT://{{ include "common.servicename" . }}:{{.Values.service.internalPort}}"
94 - name: KAFKA_LISTENERS
95 value: "INTERNAL_PLAINTEXT://0.0.0.0:{{.Values.service.internalPort}}"
96 - name: KAFKA_INTER_BROKER_LISTENER_NAME
97 value: "INTERNAL_PLAINTEXT"
99 - mountPath: /etc/localtime
102 - mountPath: /var/run/docker.sock
110 - name: docker-socket
112 path: /var/run/docker.sock
114 persistentVolumeClaim:
115 claimName: {{ include "common.fullname" . }}
117 - name: "{{ include "common.namespace" . }}-docker-registry-key"