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
45 {{ include "common.certInitializer.initContainer" . | indent 6 | trim }}
46 {{- if .Values.global.aafEnabled }}
47 - name: {{ include "common.name" . }}-update-config
53 export $(cat {{ .Values.certInitializer.appMountPath }}/local/mycreds.prop | xargs -0);
54 cd /config-input && for PFILE in `ls -1 .`; do envsubst <${PFILE} >/config/${PFILE}; done
55 volumeMounts: {{ include "common.certInitializer.volumeMount" . | nindent 8 }}
58 - mountPath: /config-input
60 image: {{ include "repositoryGenerator.image.envsubst" . }}
61 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
64 {{- if .Values.prometheus.jmx.enabled }}
65 - name: prometheus-jmx-exporter
66 image: {{ include "repositoryGenerator.dockerHubRepository" . }}/{{ .Values.prometheus.jmx.image }}:{{ .Values.prometheus.jmx.imageTag }}
67 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
70 - -XX:+UnlockExperimentalVMOptions
71 - -XX:+UseCGroupMemoryLimitForHeap
72 - -XX:MaxRAMFraction=1
75 - jmx_prometheus_httpserver.jar
76 - {{ .Values.prometheus.jmx.port | quote }}
77 - /etc/jmx-kafka/jmx-mrservice-prometheus.yml
79 - containerPort: {{ .Values.prometheus.jmx.port }}
83 mountPath: /etc/jmx-kafka
85 - name: {{ include "common.name" . }}
86 image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.image }}
87 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
88 {{- if .Values.global.aafEnabled }}
94 cp /jetty-config/ajsc-jetty.xml /appl/dmaapMR1/etc/
95 cp /jetty-config/cadi.properties {{ .Values.certInitializer.appMountPath }}/local/cadi.properties
96 /bin/sh /appl/startup.sh
98 ports: {{ include "common.containerPorts" . | nindent 10 }}
99 {{- if eq .Values.liveness.enabled true }}
102 port: {{ .Values.liveness.port }}
103 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
104 periodSeconds: {{ .Values.liveness.periodSeconds }}
105 timeoutSeconds: {{ .Values.liveness.timeoutSeconds }}
109 port: {{ .Values.readiness.port }}
110 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
111 periodSeconds: {{ .Values.readiness.periodSeconds }}
112 timeoutSeconds: {{ .Values.readiness.timeoutSeconds }}
115 value: "{{ .Values.global.aafEnabled }}"
116 volumeMounts: {{ include "common.certInitializer.volumeMount" . | nindent 10 }}
117 - mountPath: /etc/localtime
120 - mountPath: /appl/dmaapMR1/bundleconfig/etc/appprops/MsgRtrApi.properties
121 subPath: MsgRtrApi.properties
123 - mountPath: /appl/dmaapMR1/bundleconfig/etc/logback.xml
126 - mountPath: /appl/dmaapMR1/etc/keyfile
129 {{- if .Values.global.aafEnabled }}
130 - mountPath: /appl/dmaapMR1/etc/runner-web.xml
131 subPath: runner-web.xml
133 - mountPath: /appl/dmaapMR1/bundleconfig/etc/sysprops/sys-props.properties
134 subPath: sys-props.properties
136 - mountPath: /jetty-config
139 resources: {{ include "common.resources" . | nindent 12 }}
140 serviceAccountName: {{ include "common.fullname" (dict "suffix" "read" "dot" . )}}
141 volumes: {{ include "common.certInitializer.volumes" . | nindent 8 }}
147 name: {{ include "common.fullname" . }}-msgrtrapi-prop-configmap
150 name: {{ include "common.fullname" . }}-etc
153 name: {{ include "common.fullname" . }}-logback-xml-configmap
154 {{- if .Values.prometheus.jmx.enabled }}
157 name: {{ include "common.fullname" . }}-prometheus-configmap
161 secretName: {{ include "common.fullname" . }}-secret
164 name: {{ include "common.fullname" . }}-sys-props
168 - name: "{{ include "common.namespace" . }}-docker-registry-key"