[CONSUL] Add limits to consul chart.
[oom.git] / kubernetes / dmaap / components / message-router / templates / configmap.yaml
1 # Copyright © 2017 Amdocs, Bell Canada
2 # Modifications Copyright © 2018 AT&T
3 #
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
7 #
8 #       http://www.apache.org/licenses/LICENSE-2.0
9 #
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.
15 apiVersion: v1
16 kind: ConfigMap
17 metadata:
18   name: {{ include "common.fullname" . }}-msgrtrapi-prop-configmap
19   namespace: {{ include "common.namespace" . }}
20   labels:
21     app: {{ include "common.name" . }}
22     chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
23     release: {{ include "common.release" . }}
24     heritage: {{ .Release.Service }}
25 data:
26 {{ tpl (.Files.Glob "resources/config/dmaap/MsgRtrApi.properties").AsConfig . | indent 2 }}
27 ---
28 apiVersion: v1
29 kind: ConfigMap
30 metadata:
31   name: {{ include "common.fullname" . }}-cadi-prop-configmap
32   namespace: {{ include "common.namespace" . }}
33   labels:
34     app: {{ include "common.name" . }}
35     chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
36     release: {{ include "common.release" . }}
37     heritage: {{ .Release.Service }}
38 data:
39 {{ tpl (.Files.Glob "resources/config/dmaap/cadi.properties").AsConfig . | indent 2 }}
40 ---
41
42 apiVersion: v1
43 kind: ConfigMap
44 metadata:
45   name: {{ include "common.fullname" . }}-logback-xml-configmap
46   namespace: {{ include "common.namespace" . }}
47   labels:
48     app: {{ include "common.name" . }}
49     chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
50     release: {{ include "common.release" . }}
51     heritage: {{ .Release.Service }}
52 data:
53 {{ tpl (.Files.Glob "resources/config/dmaap/logback.xml").AsConfig . | indent 2 }}
54 ---
55
56 apiVersion: v1
57 kind: ConfigMap
58 metadata:
59   name: {{ include "common.fullname" . }}-dbc-mrclusters
60   namespace: {{ include "common.namespace" . }}
61   labels:
62     app: {{ include "common.name" . }}
63     chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
64     release: {{ include "common.release" . }}
65     heritage: {{ .Release.Service }}
66 data:
67 {{ tpl (.Files.Glob "resources/mr_clusters/*.json").AsConfig . | indent 2 }}
68 ---
69 apiVersion: v1
70 kind: ConfigMap
71 metadata:
72   name: {{ include "common.fullname" . }}-dbc-topics
73   namespace: {{ include "common.namespace" . }}
74   labels:
75     app: {{ include "common.name" . }}
76     chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
77     release: {{ include "common.release" . }}
78     heritage: {{ .Release.Service }}
79 data:
80 {{ tpl (.Files.Glob "resources/topics/*.json").AsConfig . | indent 2 }}
81 ---
82 {{- if  .Values.prometheus.jmx.enabled }}
83 apiVersion: v1
84 kind: ConfigMap
85 metadata:
86   name: {{ include "common.fullname" . }}-prometheus-configmap
87   namespace: {{ include "common.namespace" . }}
88   labels:
89     app: {{ include "common.name" . }}
90     chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
91     release: {{ include "common.release" . }}
92     heritage: {{ .Release.Service }}
93 data:
94 {{ tpl (.Files.Glob "resources/config/dmaap/jmx-mrservice-prometheus.yml").AsConfig . | indent 2 }}
95 ---
96 {{ end }}
97
98