2 # Copyright © 2017 Amdocs, Bell Canada
3 # Modifications Copyright © 2018 AT&T
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.
20 metadata: {{- include "common.resourceMetadata" . | nindent 2 }}
22 selector: {{- include "common.selectors" . | nindent 4 }}
23 serviceName: {{ include "common.servicename" . }}
24 replicas: {{ .Values.replicaCount }}
26 metadata: {{- include "common.templateMetadata" . | nindent 6 }}
33 - {{ .Values.kafka.name }}
35 - {{ .Values.zookeeper.name }}
41 fieldPath: metadata.namespace
42 image: {{ include "repositoryGenerator.image.readiness" . }}
43 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
44 name: {{ include "common.name" . }}-readiness
46 {{- if .Values.prometheus.jmx.enabled }}
47 - name: prometheus-jmx-exporter
48 image: {{ include "repositoryGenerator.dockerHubRepository" . }}/{{ .Values.prometheus.jmx.image }}:{{ .Values.prometheus.jmx.imageTag }}
49 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
52 - -XX:+UnlockExperimentalVMOptions
53 - -XX:+UseCGroupMemoryLimitForHeap
54 - -XX:MaxRAMFraction=1
57 - jmx_prometheus_httpserver.jar
58 - {{ .Values.prometheus.jmx.port | quote }}
59 - /etc/jmx-kafka/jmx-mrservice-prometheus.yml
61 - containerPort: {{ .Values.prometheus.jmx.port }}
65 mountPath: /etc/jmx-kafka
67 - name: {{ include "common.name" . }}
68 image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.image }}
69 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
70 ports: {{ include "common.containerPorts" . | nindent 10 }}
71 {{- if eq .Values.liveness.enabled true }}
74 port: {{ .Values.liveness.port }}
75 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
76 periodSeconds: {{ .Values.liveness.periodSeconds }}
77 timeoutSeconds: {{ .Values.liveness.timeoutSeconds }}
81 port: {{ .Values.readiness.port }}
82 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
83 periodSeconds: {{ .Values.readiness.periodSeconds }}
84 timeoutSeconds: {{ .Values.readiness.timeoutSeconds }}
87 value: "{{ .Values.global.aafEnabled }}"
89 - mountPath: /etc/localtime
92 - mountPath: /appl/dmaapMR1/bundleconfig/etc/appprops/MsgRtrApi.properties
93 subPath: MsgRtrApi.properties
95 - mountPath: /appl/dmaapMR1/bundleconfig/etc/logback.xml
98 - mountPath: /appl/dmaapMR1/etc/cadi.properties
99 subPath: cadi.properties
101 - mountPath: /appl/dmaapMR1/etc/keyfile
104 resources: {{ include "common.resources" . | nindent 12 }}
111 name: {{ include "common.fullname" . }}-msgrtrapi-prop-configmap
114 name: {{ include "common.fullname" . }}-logback-xml-configmap
117 name: {{ include "common.fullname" . }}-cadi-prop-configmap
118 {{- if .Values.prometheus.jmx.enabled }}
121 name: {{ include "common.fullname" . }}-prometheus-configmap
125 secretName: {{ include "common.fullname" . }}-secret
127 - name: "{{ include "common.namespace" . }}-docker-registry-key"