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: extensions/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 }}
29 app: {{ include "common.name" . }}
30 release: {{ include "common.release" . }}
32 hostname: {{ .Values.global.dmaapDrProvName }}
34 - name: {{ include "common.name" . }}-readiness
35 image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
36 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
41 - {{ .Values.config.dmaapDrDb.mariadbContName }}
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-prov-aaf-config
66 image: "{{ include "common.repository" . }}/{{ .Values.global.aafAgentImage }}"
67 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
68 command: ["bash","-c","exec /opt/app/aaf_config/bin/agent.sh"]
70 - mountPath: {{ .Values.persistence.aafCredsPath }}
71 name: {{ include "common.fullname" . }}-aaf-config-vol
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 }}"
95 - name: {{ include "common.name" . }}-permission-fixer
96 image: "{{ .Values.global.busyBoxRepository }}/{{ .Values.global.busyBoxImage }}"
97 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
99 - mountPath: {{ .Values.persistence.aafCredsPath }}
100 name: {{ include "common.fullname" . }}-aaf-config-vol
101 command: ["chown","-Rf","1000:1001", "/opt/app/"]
104 - name: {{ include "common.name" . }}
105 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
106 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
108 - containerPort: {{ .Values.config.dmaapDrProv.internalPort }}
109 {{- if eq .Values.liveness.enabled true }}
112 port: {{ .Values.config.dmaapDrProv.internalPort }}
113 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
114 periodSeconds: {{ .Values.liveness.periodSeconds }}
118 port: {{ .Values.config.dmaapDrProv.internalPort }}
119 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
120 periodSeconds: {{ .Values.readiness.periodSeconds }}
122 {{- if .Values.global.aafEnabled }}
123 - mountPath: {{ .Values.persistence.aafCredsPath }}
124 name: {{ include "common.fullname" . }}-aaf-config-vol
126 - mountPath: /etc/localtime
129 - mountPath: /opt/app/datartr/etc/provserver.properties
130 name: {{ include "common.fullname" . }}-config
131 subPath: provserver.properties
132 - mountPath: /opt/app/datartr/etc/logback.xml
133 name: {{ include "common.fullname" . }}-log-conf
135 - mountPath: {{ .Values.global.loggingDirectory }}
136 name: {{ include "common.fullname" . }}-logs
138 {{ include "common.resources" . }}
139 {{- if .Values.nodeSelector }}
141 {{ toYaml .Values.nodeSelector | indent 10 }}
143 {{- if .Values.affinity }}
145 {{ toYaml .Values.affinity | indent 10 }}
147 # Filebeat sidecar container
148 - name: {{ include "common.name" . }}-filebeat-onap
149 image: "{{ .Values.global.loggingRepository }}/{{ .Values.global.loggingImage }}"
150 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
152 - name: {{ include "common.fullname" . }}-filebeat-conf
153 mountPath: /usr/share/filebeat/filebeat.yml
154 subPath: filebeat.yml
155 - name: {{ include "common.fullname" . }}-data-filebeat
156 mountPath: /usr/share/filebeat/data
157 - name: {{ include "common.fullname" . }}-logs
158 mountPath: /var/log/onap/datarouter-prov
163 - name: {{ include "common.fullname" . }}-config
165 name: {{ include "common.fullname" . }}-configmap
167 - key: provserver.properties
168 path: provserver.properties
169 - name: {{ include "common.fullname" . }}-log-conf
171 name: {{ include "common.fullname" . }}-log
172 - name: {{ include "common.fullname" . }}-filebeat-conf
174 name: {{ include "common.fullname" . }}-dmaap-dr-prov-filebeat-configmap
175 - name: {{ include "common.fullname" . }}-data-filebeat
177 - name: {{ include "common.fullname" . }}-logs
179 {{- if .Values.global.aafEnabled }}
180 - name: {{ include "common.fullname" . }}-aaf-config-vol
181 {{- if .Values.persistence.enabled }}
182 persistentVolumeClaim:
183 claimName: {{ include "common.fullname" . }}-aaf-props
189 - name: "{{ include "common.namespace" . }}-docker-registry-key"