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: {{ .Release.Name }}
23 heritage: {{ .Release.Service }}
25 replicas: {{ .Values.replicaCount }}
29 app: {{ include "common.name" . }}
30 release: {{ .Release.Name }}
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 }}
62 fieldPath: metadata.namespace
63 - name: {{ include "common.name" . }}-dr-prov-aaf-config
64 image: "{{ include "common.repository" . }}/{{ .Values.global.aafAgentImage }}"
65 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
66 command: ["bash","-c","exec /opt/app/aaf_config/bin/agent.sh"]
68 - mountPath: {{ .Values.persistence.aafCredsPath }}
69 name: {{ include "common.fullname" . }}-aaf-config-vol
72 value: "{{ .Values.aafConfig.fqi }}"
73 - name: aaf_locate_url
74 value: "https://aaf-locate.{{ .Release.Namespace }}:8095"
75 - name: aaf_locator_container
76 value: "{{ .Values.global.aafLocatorContainer }}"
77 - name: aaf_locator_container_ns
78 value: "{{ .Release.Namespace }}"
79 - name: aaf_locator_fqdn
80 value: "{{ .Values.aafConfig.fqdn }}"
81 - name: aaf_locator_public_fqdn
82 value: "{{.Values.aafConfig.publicFqdn}}"
83 - name: aaf_locator_app_ns
84 value: "{{ .Values.global.aafAppNs }}"
86 value: "{{ .Values.aafConfig.aafDeployFqi }}"
87 - name: DEPLOY_PASSWORD
88 value: "{{ .Values.aafConfig.aafDeployPass }}"
89 - name: cadi_longitude
90 value: "{{ .Values.aafConfig.cadiLongitude }}"
92 value: "{{ .Values.aafConfig.cadiLatitude }}"
93 - name: {{ include "common.name" . }}-permission-fixer
94 image: "{{ .Values.global.busyBoxRepository }}/{{ .Values.global.busyBoxImage }}"
95 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
97 - mountPath: {{ .Values.persistence.aafCredsPath }}
98 name: {{ include "common.fullname" . }}-aaf-config-vol
99 command: ["chown","-Rf","1000:1001", "/opt/app/"]
102 - name: {{ include "common.name" . }}
103 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
104 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
106 - containerPort: {{ .Values.config.dmaapDrProv.internalPort }}
107 {{- if eq .Values.liveness.enabled true }}
110 port: {{ .Values.config.dmaapDrProv.internalPort }}
111 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
112 periodSeconds: {{ .Values.liveness.periodSeconds }}
116 port: {{ .Values.config.dmaapDrProv.internalPort }}
117 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
118 periodSeconds: {{ .Values.readiness.periodSeconds }}
120 {{- if .Values.global.aafEnabled }}
121 - mountPath: {{ .Values.persistence.aafCredsPath }}
122 name: {{ include "common.fullname" . }}-aaf-config-vol
124 - mountPath: /etc/localtime
127 - mountPath: /opt/app/datartr/etc/provserver.properties
128 name: {{ include "common.fullname" . }}-config
129 subPath: provserver.properties
130 - mountPath: /opt/app/datartr/etc/logback.xml
131 name: {{ include "common.fullname" . }}-log-conf
133 - mountPath: {{ .Values.global.loggingDirectory }}
134 name: {{ include "common.fullname" . }}-logs
136 {{ include "common.resources" . }}
137 {{- if .Values.nodeSelector }}
139 {{ toYaml .Values.nodeSelector | indent 10 }}
141 {{- if .Values.affinity }}
143 {{ toYaml .Values.affinity | indent 10 }}
145 # Filebeat sidecar container
146 - name: {{ include "common.name" . }}-filebeat-onap
147 image: "{{ .Values.global.loggingRepository }}/{{ .Values.global.loggingImage }}"
148 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
150 - name: {{ include "common.fullname" . }}-filebeat-conf
151 mountPath: /usr/share/filebeat/filebeat.yml
152 subPath: filebeat.yml
153 - name: {{ include "common.fullname" . }}-data-filebeat
154 mountPath: /usr/share/filebeat/data
155 - name: {{ include "common.fullname" . }}-logs
156 mountPath: /var/log/onap/datarouter-prov
161 - name: {{ include "common.fullname" . }}-config
163 name: {{ include "common.fullname" . }}-configmap
165 - key: provserver.properties
166 path: provserver.properties
167 - name: {{ include "common.fullname" . }}-log-conf
169 name: {{ include "common.fullname" . }}-log
170 - name: {{ include "common.fullname" . }}-filebeat-conf
172 name: {{ include "common.fullname" . }}-dmaap-dr-prov-filebeat-configmap
173 - name: {{ include "common.fullname" . }}-data-filebeat
175 - name: {{ include "common.fullname" . }}-logs
177 {{- if .Values.global.aafEnabled }}
178 - name: {{ include "common.fullname" . }}-aaf-config-vol
179 {{- if .Values.persistence.enabled }}
180 persistentVolumeClaim:
181 claimName: {{ include "common.fullname" . }}-aaf-props
187 - name: "{{ include "common.namespace" . }}-docker-registry-key"