2 # Copyright © 2017 Amdocs, 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.
20 name: {{ include "common.fullname" . }}
21 namespace: {{ include "common.namespace" . }}
23 app: {{ include "common.name" . }}
24 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
25 release: {{ include "common.release" . }}
26 heritage: {{ .Release.Service }}
30 app: {{ include "common.name" . }}
31 replicas: {{ .Values.replicaCount }}
35 app: {{ include "common.name" . }}
36 release: {{ include "common.release" . }}
38 sidecar.istio.io/inject: "{{.Values.istioSidecar}}"
45 - "{{ include "common.release" . }}-{{ include "common.name" . }}-config-job"
51 fieldPath: metadata.namespace
52 image: {{ include "repositoryGenerator.image.readiness" . }}
53 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
54 name: {{ include "common.name" . }}-job-readiness
55 {{ include "common.readinessCheck.waitFor" (dict "dot" . "wait_for" .Values.readinessCheck.wait_for.msb ) | indent 6 | trim }}
59 - chown -R 1000:1000 /service/modeling/etsicatalog/static
60 image: {{ include "repositoryGenerator.image.busybox" . }}
61 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
62 name: {{ include "common.name" . }}-init
64 - name: {{ include "common.fullname" . }}-etsicatalog
65 mountPath: /service/modeling/etsicatalog/static
67 - name: {{ include "common.name" . }}
68 image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.image }}
69 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
71 - containerPort: {{ .Values.service.internalPort }}
72 # disable liveness probe when breakpoints set in debugger
73 # so K8s doesn't restart unresponsive container
74 {{ if .Values.liveness.enabled }}
77 port: {{ .Values.service.internalPort }}
78 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
79 periodSeconds: {{ .Values.liveness.periodSeconds }}
83 port: {{ .Values.service.internalPort }}
84 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
85 periodSeconds: {{ .Values.readiness.periodSeconds }}
88 value: "{{ .Values.config.ssl_enabled }}"
90 value: "{{ .Values.config.msb_enabled }}"
92 value: "{{ .Values.config.msbProtocol }}://{{ .Values.config.msbServiceName }}:{{ .Values.config.msbPort }}"
94 value: "{{ .Values.config.sdcProtocol }}://{{ .Values.config.sdcServiceName }}:{{ .Values.config.sdcPort }}"
96 value: "{{ .Values.config.dmaap_enabled }}"
98 value: "{{ .Values.config.dmaapProtocol }}://{{ .Values.config.dmaapServiceName }}:{{ .Values.config.dmaapPort }}"
100 value: "{{ include "common.mariadbService" . }}"
102 value: "{{ include "common.mariadbPort" . }}"
104 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "modeling-db-secret" "key" "login") | indent 12 }}
106 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "modeling-db-secret" "key" "password") | indent 12 }}
108 - name: {{ include "common.fullname" . }}-etsicatalog
109 mountPath: /service/modeling/etsicatalog/static
110 - name: {{ include "common.fullname" . }}-localtime
111 mountPath: /etc/localtime
113 - name: {{ include "common.fullname" . }}-logs
114 mountPath: /var/log/onap
115 - name: {{ include "common.fullname" . }}-logconfig
116 mountPath: /opt/modeling/etsicatalog/config/log.yml
119 {{ include "common.resources" . | indent 12 }}
120 {{- if .Values.nodeSelector }}
122 {{ toYaml .Values.nodeSelector | indent 10 }}
124 {{- if .Values.affinity }}
126 {{ toYaml .Values.affinity | indent 10 }}
129 # side car containers
130 - name: {{ include "common.name" . }}-filebeat-onap
131 image: {{ include "repositoryGenerator.image.logging" . }}
132 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
134 - name: {{ include "common.fullname" . }}-filebeat-conf
135 mountPath: /usr/share/filebeat/filebeat.yml
136 subPath: filebeat.yml
137 - name: {{ include "common.fullname" . }}-logs
138 mountPath: /var/log/onap
139 - name: {{ include "common.fullname" . }}-data-filebeat
140 mountPath: /usr/share/filebeat/data
143 - name: {{ include "common.fullname" . }}-etsicatalog
144 {{- if .Values.persistence.enabled }}
145 persistentVolumeClaim:
146 claimName: {{ include "common.fullname" . }}
150 - name: {{ include "common.fullname" . }}-localtime
153 - name: {{ include "common.fullname" . }}-logs
155 - name: {{ include "common.fullname" . }}-logconfig
157 name : {{ include "common.fullname" . }}-logging-configmap
159 - name: {{ include "common.fullname" . }}-filebeat-conf
161 name: {{ include "common.fullname" . }}-modeling-filebeat-configmap
162 - name: {{ include "common.fullname" . }}-data-filebeat
165 - name: "{{ include "common.namespace" . }}-docker-registry-key"