1 # Copyright © 2017 Amdocs, Bell Canada
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
7 # http://www.apache.org/licenses/LICENSE-2.0
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14 apiVersion: apps/v1beta1
17 name: {{ include "common.fullname" . }}
18 namespace: {{ include "common.namespace" . }}
20 app: {{ include "common.name" . }}
21 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
22 release: {{ include "common.release" . }}
23 heritage: {{ .Release.Service }}
25 replicas: {{ .Values.replicaCount }}
26 serviceName: {{ .Values.config.dmaapDrNode.name }}
30 app: {{ include "common.name" . }}
31 release: {{ include "common.release" . }}
34 - name: {{ include "common.name" . }}-readiness
35 image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
36 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
47 fieldPath: metadata.namespace
48 {{- if .Values.global.aafEnabled }}
49 - name: {{ include "common.name" . }}-aaf-readiness
50 image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
51 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
64 fieldPath: metadata.namespace
65 - name: {{ include "common.name" . }}-dr-node-aaf-config
66 image: "{{ include "common.repository" . }}/{{ .Values.global.aafAgentImage }}"
67 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
69 - mountPath: {{ .Values.persistence.aafCredsPath }}
70 name: {{ include "common.fullname" . }}-aaf-props
71 command: ["bash","-c","exec /opt/app/aaf_config/bin/agent.sh"]
74 value: "{{ .Values.aafConfig.fqi }}"
75 - name: aaf_locate_url
76 value: "https://aaf-locate.{{ .Release.Namespace }}:8095"
77 - name: aaf_locator_container
78 value: "{{ .Values.global.aafLocatorContainer }}"
79 - name: aaf_locator_container_ns
80 value: "{{ .Release.Namespace }}"
81 - name: aaf_locator_fqdn
82 value: "{{ .Values.aafConfig.fqdn }}"
83 - name: aaf_locator_public_fqdn
84 value: "{{.Values.aafConfig.publicFqdn}}"
85 - name: aaf_locator_app_ns
86 value: "{{ .Values.global.aafAppNs }}"
88 value: "{{ .Values.aafConfig.aafDeployFqi }}"
89 - name: DEPLOY_PASSWORD
90 value: "{{ .Values.aafConfig.aafDeployPass }}"
91 - name: cadi_longitude
92 value: "{{ .Values.aafConfig.cadiLongitude }}"
94 value: "{{ .Values.aafConfig.cadiLatitude }}"
96 - name: {{ include "common.name" . }}-permission-fixer
97 image: "{{ .Values.global.busyBoxRepository }}/{{ .Values.global.busyBoxImage }}"
98 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
100 - mountPath: {{ .Values.persistence.spoolPath }}
101 name: {{ include "common.fullname" . }}-data
102 - mountPath: {{ .Values.persistence.eventLogsPath }}
103 name: {{ include "common.fullname" . }}-event-logs
104 {{- if .Values.global.aafEnabled }}
105 - mountPath: {{ .Values.persistence.aafCredsPath }}
106 name: {{ include "common.fullname" . }}-aaf-props
108 command: ["chown","-Rf","1000:1001", "/opt/app/"]
110 - name: {{ include "common.name" . }}
111 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
112 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
114 - containerPort: {{.Values.config.dmaapDrNode.externalPort}}
115 - containerPort: {{.Values.config.dmaapDrNode.externalPort2}}
116 {{- if eq .Values.liveness.enabled true }}
119 port: {{.Values.config.dmaapDrNode.internalPort}}
120 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
121 periodSeconds: {{ .Values.liveness.periodSeconds }}
125 port: {{.Values.config.dmaapDrNode.internalPort}}
126 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
127 periodSeconds: {{ .Values.readiness.periodSeconds }}
129 {{- if .Values.global.aafEnabled }}
130 - mountPath: {{ .Values.persistence.aafCredsPath }}
131 name: {{ include "common.fullname" . }}-aaf-props
133 - mountPath: {{ .Values.persistence.spoolPath }}
134 name: {{ include "common.fullname" . }}-data
135 - mountPath: {{ .Values.persistence.eventLogsPath }}
136 name: {{ include "common.fullname" . }}-event-logs
137 - mountPath: /etc/localtime
140 - mountPath: /opt/app/datartr/etc/node.properties
141 name: {{ include "common.fullname" . }}-config
142 subPath: node.properties
143 - mountPath: /opt/app/datartr/etc/logback.xml
144 name: {{ include "common.fullname" . }}-log-conf
146 - mountPath: {{ .Values.global.loggingDirectory }}
147 name: {{ include "common.fullname" . }}-logs
149 {{ include "common.resources" . }}
150 {{- if .Values.nodeSelector }}
152 {{ toYaml .Values.nodeSelector | indent 10 }}
154 {{- if .Values.affinity }}
156 {{ toYaml .Values.affinity | indent 10 }}
158 # Filebeat sidecar container
159 - name: {{ include "common.name" . }}-filebeat-onap
160 image: "{{ .Values.global.loggingRepository }}/{{ .Values.global.loggingImage }}"
161 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
163 - name: {{ include "common.fullname" . }}-filebeat-conf
164 mountPath: /usr/share/filebeat/filebeat.yml
165 subPath: filebeat.yml
166 - name: {{ include "common.fullname" . }}-data-filebeat
167 mountPath: /usr/share/filebeat/data
168 - name: {{ include "common.fullname" . }}-logs
169 mountPath: /var/log/onap/datarouter-node
171 - name: "{{ include "common.namespace" . }}-docker-registry-key"
176 - name: {{ include "common.fullname" . }}-config
178 name: {{ include "common.fullname" . }}-configmap
180 - key: node.properties
181 path: node.properties
182 - name: {{ include "common.fullname" . }}-log-conf
184 name: {{ include "common.fullname" . }}-log
185 - name: {{ include "common.fullname" . }}-filebeat-conf
187 name: {{ include "common.fullname" . }}-dmaap-dr-node-filebeat-configmap
188 - name: {{ include "common.fullname" . }}-data-filebeat
190 - name: {{ include "common.fullname" . }}-logs
192 {{- if not .Values.persistence.enabled }}
193 - name: {{ include "common.fullname" . }}-event-logs
195 - name: {{ include "common.fullname" . }}-data
197 {{- if .Values.global.aafEnabled }}
198 - name: {{ include "common.fullname" . }}-aaf-props
202 {{- if .Values.persistence.enabled }}
203 volumeClaimTemplates:
205 name: {{ include "common.fullname" . }}-data
207 name: {{ include "common.fullname" . }}
210 - {{ .Values.persistence.accessMode }}
211 storageClassName: {{ include "common.storageClass" . }}
214 storage: {{ .Values.persistence.spoolSize }}
216 name: {{ include "common.fullname" . }}-event-logs
218 name: {{ include "common.fullname" . }}
221 - {{ .Values.persistence.accessMode }}
222 {{- if eq "True" (include "common.needPV" .) }}
223 storageClassName: "{{ include "common.fullname" . }}-data-event-logs"
225 storageClassName: {{ include "common.storageClass" . }}
229 storage: {{ .Values.persistence.eventLogSize }}
230 {{- if .Values.global.aafEnabled }}
232 name: {{ include "common.fullname" . }}-aaf-props
234 name: {{ include "common.fullname" . }}
237 - {{ .Values.persistence.accessMode }}
238 {{- if eq "True" (include "common.needPV" .) }}
239 storageClassName: "{{ include "common.fullname" . }}-data-aaf-props"
241 storageClassName: {{ include "common.storageClass" . }}
245 storage: {{ .Values.persistence.aafCredsSize }}