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.
18 metadata: {{- include "common.resourceMetadata" . | nindent 2 }}
20 selector: {{- include "common.selectors" . | nindent 4 }}
21 serviceName: {{ include "common.servicename" . }}
22 replicas: {{ .Values.replicaCount }}
24 metadata: {{- include "common.templateMetadata" . | nindent 6 }}
31 - {{ .Values.kafka.name }}
33 - {{ .Values.zookeeper.name }}
39 fieldPath: metadata.namespace
40 image: "{{ include "common.repository" . }}/{{ .Values.global.readinessImage }}"
41 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
42 name: {{ include "common.name" . }}-readiness
44 {{- if .Values.prometheus.jmx.enabled }}
45 - name: prometheus-jmx-exporter
46 image: "{{ .Values.prometheus.jmx.imageRepository }}/{{ .Values.prometheus.jmx.image }}:{{ .Values.prometheus.jmx.imageTag }}"
47 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
50 - -XX:+UnlockExperimentalVMOptions
51 - -XX:+UseCGroupMemoryLimitForHeap
52 - -XX:MaxRAMFraction=1
55 - jmx_prometheus_httpserver.jar
56 - {{ .Values.prometheus.jmx.port | quote }}
57 - /etc/jmx-kafka/jmx-mrservice-prometheus.yml
59 - containerPort: {{ .Values.prometheus.jmx.port }}
63 mountPath: /etc/jmx-kafka
65 - name: {{ include "common.name" . }}
66 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
67 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
68 ports: {{ include "common.containerPorts" . | nindent 10 }}
69 {{- if eq .Values.liveness.enabled true }}
72 port: {{ .Values.liveness.port }}
73 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
74 periodSeconds: {{ .Values.liveness.periodSeconds }}
75 timeoutSeconds: {{ .Values.liveness.timeoutSeconds }}
79 port: {{ .Values.readiness.port }}
80 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
81 periodSeconds: {{ .Values.readiness.periodSeconds }}
82 timeoutSeconds: {{ .Values.readiness.timeoutSeconds }}
85 value: "{{ .Values.global.aafEnabled }}"
87 - mountPath: /etc/localtime
90 - mountPath: /appl/dmaapMR1/bundleconfig/etc/appprops/MsgRtrApi.properties
91 subPath: MsgRtrApi.properties
93 - mountPath: /appl/dmaapMR1/bundleconfig/etc/logback.xml
96 - mountPath: /appl/dmaapMR1/etc/cadi.properties
97 subPath: cadi.properties
99 - mountPath: /appl/dmaapMR1/etc/keyfile
102 resources: {{ include "common.resources" . | nindent 12 }}
109 name: {{ include "common.fullname" . }}-msgrtrapi-prop-configmap
112 name: {{ include "common.fullname" . }}-logback-xml-configmap
115 name: {{ include "common.fullname" . }}-cadi-prop-configmap
116 {{- if .Values.prometheus.jmx.enabled }}
119 name: {{ include "common.fullname" . }}-prometheus-configmap
123 secretName: {{ include "common.fullname" . }}-secret
125 - name: "{{ include "common.namespace" . }}-docker-registry-key"