1 # Copyright © 2018 Amdocs, AT&T
2 # Modifications Copyright © 2018 Bell Canada
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
8 # http://www.apache.org/licenses/LICENSE-2.0
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.
19 name: {{ include "common.fullname" . }}
20 namespace: {{ include "common.namespace" . }}
22 app: {{ include "common.name" . }}
23 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
24 release: {{ include "common.release" . }}
25 heritage: {{ .Release.Service }}
27 replicas: {{ .Values.replicaCount }}
30 app: {{ include "common.name" . }}
34 app: {{ include "common.name" . }}
35 release: {{ include "common.release" . }}
36 name: {{ include "common.name" . }}
38 {{- if .Values.nodeSelector }}
40 {{ toYaml .Values.nodeSelector | indent 8 }}
42 {{- if .Values.affinity }}
44 {{ toYaml .Values.affinity | indent 8 }}
47 - name: {{ include "common.name" . }}
48 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
49 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
52 value: /opt/app/model-loader/config/
54 - mountPath: /etc/localtime
57 - mountPath: /opt/app/model-loader/config/model-loader.properties
58 subPath: model-loader.properties
59 name: {{ include "common.fullname" . }}-prop-config
60 - mountPath: /opt/app/model-loader/config/auth/
61 name: {{ include "common.fullname" . }}-auth-config
62 - mountPath: /var/log/onap
63 name: {{ include "common.fullname" . }}-logs
64 - mountPath: /opt/app/model-loader/logback.xml
65 name: {{ include "common.fullname" . }}-log-conf
68 - containerPort: {{ .Values.service.internalPort }}
69 - containerPort: {{ .Values.service.internalPort2 }}
71 {{ include "common.resources" . }}
75 image: "{{ .Values.global.loggingRepository }}/{{ .Values.global.loggingImage }}"
76 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
78 - mountPath: /usr/share/filebeat/filebeat.yml
81 - mountPath: /var/log/onap
82 name: {{ include "common.fullname" . }}-logs
83 - mountPath: /usr/share/filebeat/data
86 {{ include "common.resources" . }}
91 - name: {{ include "common.fullname" . }}-prop-config
93 name: {{ include "common.fullname" . }}-prop
94 - name: {{ include "common.fullname" . }}-auth-config
96 secretName: {{ include "common.fullname" . }}
100 - name: {{ include "common.fullname" . }}-logs
104 - name: {{ include "common.fullname" . }}-log-conf
106 name: {{ include "common.fullname" . }}-log
107 restartPolicy: {{ .Values.global.restartPolicy | default .Values.restartPolicy }}
109 - name: "{{ include "common.namespace" . }}-docker-registry-key"