1 # Copyright © 2018 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.
15 apiVersion: extensions/v1beta1
18 name: {{ include "common.fullname" . }}
19 namespace: {{ include "common.namespace" . }}
21 app: {{ include "common.name" . }}
22 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
23 release: {{ .Release.Name }}
24 heritage: {{ .Release.Service }}
26 replicas: {{ .Values.replicaCount }}
30 app: {{ include "common.name" . }}
31 release: {{ .Release.Name }}
34 - name: {{ include "common.name" . }}-readiness
45 fieldPath: metadata.namespace
46 image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
47 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
49 - name: {{ include "common.name" . }}
50 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
51 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
53 - containerPort: {{ .Values.service.internalPort }}
54 - containerPort: {{ .Values.service.internalPort2 }}
55 {{ if .Values.liveness.enabled }}
58 port: {{ .Values.service.internalPort }}
59 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
60 periodSeconds: {{ .Values.liveness.periodSeconds }}
64 port: {{ .Values.service.internalPort }}
65 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
66 periodSeconds: {{ .Values.readiness.periodSeconds }}
69 value: {{ .Values.global.env.name }}
71 value: {{ .Values.config.javaOptions }}
73 value: {{ .Values.config.backendServerURL }}
75 value: "{{ .Values.config.isHttpsEnabled}}"
76 {{ if and .Values.config.isHttpsEnabled (eq .Values.security.isDefaultStore false) }}
78 value: "{{ .Values.security.keystorePass}}"
79 - name: TRUSTSTORE_PASS
80 value: "{{ .Values.security.truststorePass}}"
81 - name: TRUSTSTORE_PATH
82 value: "{{ .Values.security.storePath }}/{{ .Values.security.truststoreFilename }}"
84 value: "{{ .Values.security.storePath }}/{{ .Values.security.keystoreFilename }}"
87 - name: {{ include "common.fullname" . }}-localtime
88 mountPath: /etc/localtime
91 {{ include "common.resources" . | indent 12 }}
92 {{- if .Values.nodeSelector }}
94 {{ toYaml .Values.nodeSelector | indent 10 }}
96 {{- if .Values.affinity }}
98 {{ toYaml .Values.affinity | indent 10 }}
100 # side car containers
101 - name: {{ include "common.name" . }}-filebeat-onap
102 image: "{{ .Values.global.loggingRepository }}/{{ .Values.global.loggingImage }}"
103 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
105 - name: {{ include "common.fullname" . }}-filebeat-conf
106 mountPath: /usr/share/filebeat/filebeat.yml
107 subPath: filebeat.yml
108 - name: {{ include "common.fullname" . }}-logs
109 mountPath: /var/log/onap
110 - name: {{ include "common.fullname" . }}-data-filebeat
111 mountPath: /usr/share/filebeat/data
113 - name: {{ include "common.fullname" . }}-localtime
116 - name: {{ include "common.fullname" . }}-filebeat-conf
118 name: {{ .Release.Name }}-sdc-filebeat-configmap
119 - name: {{ include "common.fullname" . }}-data-filebeat
121 - name: {{ include "common.fullname" . }}-logs
124 - name: "{{ include "common.namespace" . }}-docker-registry-key"