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.
18 name: {{ include "common.fullname" . }}
19 namespace: {{ include "common.namespace" . }}
21 app: {{ include "common.name" . }}
22 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
23 release: {{ include "common.release" . }}
24 heritage: {{ .Release.Service }}
28 app: {{ include "common.name" . }}
29 replicas: {{ .Values.replicaCount }}
33 app: {{ include "common.name" . }}
34 release: {{ include "common.release" . }}
37 - name: {{ include "common.name" . }}-readiness
48 fieldPath: metadata.namespace
49 image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
50 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
52 - name: {{ include "common.name" . }}
53 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
54 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
56 - containerPort: {{ template "wfd-fe.internalPort" . }}
57 {{ if .Values.liveness.enabled }}
60 port: {{ template "wfd-fe.internalPort" . }}
61 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
62 periodSeconds: {{ .Values.liveness.periodSeconds }}
66 port: {{ template "wfd-fe.internalPort" . }}
67 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
68 periodSeconds: {{ .Values.readiness.periodSeconds }}
71 value: {{ .Values.global.env.name }}
73 value: {{ .Values.config.javaOptions }}
75 value: {{ .Values.config.backendServerURL }}
77 value: "{{ .Values.config.isHttpsEnabled}}"
78 {{ if and .Values.config.isHttpsEnabled (eq .Values.security.isDefaultStore false) }}
81 secretKeyRef: {name: {{ include "common.release" . }}-sdc-cs-secrets, key: keystore_password}
82 - name: TRUSTSTORE_PASS
84 secretKeyRef: {name: {{ include "common.release" . }}-sdc-cs-secrets, key: truststore_password}
85 - name: TRUSTSTORE_PATH
86 value: "{{ .Values.security.storePath }}/{{ .Values.security.truststoreFilename }}"
88 value: "{{ .Values.security.storePath }}/{{ .Values.security.keystoreFilename }}"
90 value: "{{ .Values.config.isTrustAll}}"
93 - name: {{ include "common.fullname" . }}-localtime
94 mountPath: /etc/localtime
97 mountPath: /var/lib/jetty/etc/org.onap.sdc.p12
98 subPath: org.onap.sdc.p12
100 mountPath: /var/lib/jetty/etc/org.onap.sdc.trust.jks
101 subPath: org.onap.sdc.trust.jks
103 {{ include "common.resources" . | indent 12 }}
104 {{- if .Values.nodeSelector }}
106 {{ toYaml .Values.nodeSelector | indent 10 }}
108 {{- if .Values.affinity }}
110 {{ toYaml .Values.affinity | indent 10 }}
112 # side car containers
113 - name: {{ include "common.name" . }}-filebeat-onap
114 image: "{{ .Values.global.loggingRepository }}/{{ .Values.global.loggingImage }}"
115 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
117 - name: {{ include "common.fullname" . }}-filebeat-conf
118 mountPath: /usr/share/filebeat/filebeat.yml
119 subPath: filebeat.yml
120 - name: {{ include "common.fullname" . }}-logs
121 mountPath: /var/log/onap
122 - name: {{ include "common.fullname" . }}-data-filebeat
123 mountPath: /usr/share/filebeat/data
125 - name: {{ include "common.fullname" . }}-localtime
131 - name: {{ include "common.fullname" . }}-filebeat-conf
133 name: {{ include "common.release" . }}-sdc-filebeat-configmap
134 - name: {{ include "common.fullname" . }}-data-filebeat
136 - name: {{ include "common.fullname" . }}-logs
139 - name: "{{ include "common.namespace" . }}-docker-registry-key"