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 {{- if .Values.global.security.keysFromCa }}
82 key: keystore-password.txt
84 value: {{ .Values.global.security.keyStorePass}}
86 - name: TRUSTSTORE_PASS
87 {{- if .Values.global.security.keysFromCa }}
90 name: mft-catruststore
91 key: keystore-password.txt
93 value: {{ .Values.global.security.trustStorePass}}
95 - name: TRUSTSTORE_PATH
96 value: "{{ .Values.security.storePath }}/{{ .Values.security.truststoreFilename }}"
98 value: "{{ .Values.security.storePath }}/{{ .Values.security.keystoreFilename }}"
99 - name: TRUSTSTORE_TYPE
100 value: {{ .Values.security.truststore.type }}
101 - name: KEYSTORE_TYPE
102 value: {{ .Values.security.keystore.type }}
105 {{ if and .Values.config.isHttpsEnabled (eq .Values.security.isDefaultStore false) }}
106 - name: {{ include "common.fullname" . }}-jetty-https-truststore
107 mountPath: /var/lib/jetty/{{ .Values.security.storePath }}/{{ .Values.security.truststoreFilename }}
108 subPath: {{ .Values.security.truststoreFilename }}
109 - name: {{ include "common.fullname" . }}-jetty-https-keystore
110 mountPath: /var/lib/jetty/etc/{{ .Values.security.storePath }}/{{ .Values.security.keystoreFilename }}
111 subPath: {{ .Values.security.keystoreFilename }}
113 - name: {{ include "common.fullname" . }}-localtime
114 mountPath: /etc/localtime
117 {{ include "common.resources" . | indent 12 }}
118 {{- if .Values.nodeSelector }}
120 {{ toYaml .Values.nodeSelector | indent 10 }}
122 {{- if .Values.affinity }}
124 {{ toYaml .Values.affinity | indent 10 }}
127 # side car containers
128 - name: {{ include "common.name" . }}-filebeat-onap
129 image: "{{ .Values.global.loggingRepository }}/{{ .Values.global.loggingImage }}"
130 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
132 - name: {{ include "common.fullname" . }}-filebeat-conf
133 mountPath: /usr/share/filebeat/filebeat.yml
134 subPath: filebeat.yml
135 - name: {{ include "common.fullname" . }}-logs
136 mountPath: /var/log/onap
137 - name: {{ include "common.fullname" . }}-data-filebeat
138 mountPath: /usr/share/filebeat/data
140 - name: {{ include "common.fullname" . }}-localtime
143 - name: {{ include "common.fullname" . }}-filebeat-conf
145 name: {{ .Release.Name }}-sdc-filebeat-configmap
146 - name: {{ include "common.fullname" . }}-data-filebeat
148 - name: {{ include "common.fullname" . }}-logs
151 - name: "{{ include "common.namespace" . }}-docker-registry-key"