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" . }}-dr-prov-aaf-config
50 image: "{{ include "common.repository" . }}/{{ .Values.global.aafAgentImage }}"
51 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
52 command: ["bash","-c","exec /opt/app/aaf_config/bin/agent.sh"]
54 - mountPath: {{ .Values.persistence.aafCredsPath }}
55 name: {{ include "common.fullname" . }}-aaf-config-vol
58 value: "{{ .Values.aafConfig.fqi }}"
59 - name: aaf_locate_url
60 value: "https://aaf-locate.{{ .Release.Namespace }}:8095"
61 - name: aaf_locator_container
62 value: "{{ .Values.global.aafLocatorContainer }}"
63 - name: aaf_locator_container_ns
64 value: "{{ .Release.Namespace }}"
65 - name: aaf_locator_fqdn
66 value: "{{ .Values.aafConfig.fqdn }}"
67 - name: aaf_locator_public_fqdn
68 value: "{{.Values.aafConfig.publicFqdn}}"
69 - name: aaf_locator_app_ns
70 value: "{{ .Values.global.aafAppNs }}"
72 value: "{{ .Values.aafConfig.aafDeployFqi }}"
73 - name: DEPLOY_PASSWORD
74 value: "{{ .Values.aafConfig.aafDeployPass }}"
75 - name: cadi_longitude
76 value: "{{ .Values.aafConfig.cadiLongitude }}"
78 value: "{{ .Values.aafConfig.cadiLatitude }}"
79 - name: {{ include "common.name" . }}-permission-fixer
80 image: "{{ .Values.global.busyBoxRepository }}/{{ .Values.global.busyBoxImage }}"
81 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
83 - mountPath: {{ .Values.persistence.aafCredsPath }}
84 name: {{ include "common.fullname" . }}-aaf-config-vol
85 command: ["chown","-Rf","1000:1001", "/opt/app/"]
88 - name: {{ include "common.name" . }}
89 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
90 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
92 - containerPort: {{ .Values.config.dmaapDrProv.internalPort }}
93 {{- if eq .Values.liveness.enabled true }}
96 port: {{ .Values.config.dmaapDrProv.internalPort }}
97 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
98 periodSeconds: {{ .Values.liveness.periodSeconds }}
102 port: {{ .Values.config.dmaapDrProv.internalPort }}
103 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
104 periodSeconds: {{ .Values.readiness.periodSeconds }}
106 {{- if .Values.global.aafEnabled }}
107 - mountPath: {{ .Values.persistence.aafCredsPath }}
108 name: {{ include "common.fullname" . }}-aaf-config-vol
110 - mountPath: /etc/localtime
113 - mountPath: /opt/app/datartr/etc/provserver.properties
114 name: {{ include "common.fullname" . }}-config
115 subPath: provserver.properties
116 - mountPath: /opt/app/datartr/etc/logback.xml
117 name: {{ include "common.fullname" . }}-log-conf
119 - mountPath: {{ .Values.global.loggingDirectory }}
120 name: {{ include "common.fullname" . }}-logs
122 {{ include "common.resources" . }}
123 {{- if .Values.nodeSelector }}
125 {{ toYaml .Values.nodeSelector | indent 10 }}
127 {{- if .Values.affinity }}
129 {{ toYaml .Values.affinity | indent 10 }}
131 # Filebeat sidecar container
132 - name: {{ include "common.name" . }}-filebeat-onap
133 image: "{{ .Values.global.loggingRepository }}/{{ .Values.global.loggingImage }}"
134 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
136 - name: {{ include "common.fullname" . }}-filebeat-conf
137 mountPath: /usr/share/filebeat/filebeat.yml
138 subPath: filebeat.yml
139 - name: {{ include "common.fullname" . }}-data-filebeat
140 mountPath: /usr/share/filebeat/data
141 - name: {{ include "common.fullname" . }}-logs
142 mountPath: /var/log/onap/datarouter-prov
147 - name: {{ include "common.fullname" . }}-config
149 name: {{ include "common.fullname" . }}-configmap
151 - key: provserver.properties
152 path: provserver.properties
153 - name: {{ include "common.fullname" . }}-log-conf
155 name: {{ include "common.fullname" . }}-log
156 - name: {{ include "common.fullname" . }}-filebeat-conf
158 name: {{ include "common.fullname" . }}-dmaap-dr-prov-filebeat-configmap
159 - name: {{ include "common.fullname" . }}-data-filebeat
161 - name: {{ include "common.fullname" . }}-logs
163 {{- if .Values.global.aafEnabled }}
164 - name: {{ include "common.fullname" . }}-aaf-config-vol
165 {{- if .Values.persistence.enabled }}
166 persistentVolumeClaim:
167 claimName: {{ include "common.fullname" . }}-aaf-props
173 - name: "{{ include "common.namespace" . }}-docker-registry-key"