1 # Copyright © 2017 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 }}
29 app: {{ include "common.name" . }}
33 app: {{ include "common.name" . }}
34 release: {{ .Release.Name }}
35 name: {{ include "common.name" . }}
52 fieldPath: metadata.namespace
53 image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
54 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
55 name: {{ include "common.name" . }}-readiness
57 - name: {{ include "common.name" . }}
58 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
59 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
62 value: /opt/app/sparky/appconfig/
63 - name: KEYSTORE_ALIAS_PASSWORD
64 value: {{ .Values.config.keystoreAliasPassword }}
65 - name: KEYSTORE_PASSWORD
66 value: {{ .Values.config.keyStorePassword }}
67 - name: SPARKY_SSL_ENABLED
69 - name: SPARKY_PORTAL_ENABLED
72 - mountPath: /etc/localtime
75 - mountPath: /opt/app/sparky/appconfig/auth/
76 name: {{ include "common.fullname" . }}-auth-config
77 - mountPath: /opt/app/sparky/appconfig/camel-rests/
78 name: {{ include "common.fullname" . }}-camel-rests-config
79 - mountPath: /opt/app/sparky/appconfig/descriptors/
80 name: {{ include "common.fullname" . }}-descriptors-config
81 - mountPath: /opt/app/sparky/appconfig/filters/
82 name: {{ include "common.fullname" . }}-filters-config
83 - mountPath: /opt/app/sparky/appconfig/
84 name: {{ include "common.fullname" . }}-config
85 - mountPath: /opt/app/sparky/appconfig/portal
86 name: {{ include "common.fullname" . }}-portal-config
87 - mountPath: /opt/app/sparky/appconfig/portal/BOOT-INF/classes
88 name: {{ include "common.fullname" . }}-portal-boot-inf-config
89 - mountPath: /opt/app/sparky/appconfig/schemas
90 name: {{ include "common.fullname" . }}-schemas-config
91 - mountPath: /opt/app/sparky/appconfig/spring-beans/
92 name: {{ include "common.fullname" . }}-spring-beans-config
93 - mountPath: /var/log/onap
94 name: {{ include "common.fullname" . }}-logs
95 - mountPath: /opt/app/sparky/appconfig/logging/
96 name: {{ include "common.fullname" . }}-log-conf
98 - containerPort: {{ .Values.service.internalPort }}
99 - containerPort: {{ .Values.service.internalPort2 }}
100 # disable liveness probe when breakpoints set in debugger
101 # so K8s doesn't restart unresponsive container
102 {{- if eq .Values.liveness.enabled true }}
105 port: {{ .Values.service.internalPort }}
106 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
107 periodSeconds: {{ .Values.liveness.periodSeconds }}
111 port: {{ .Values.service.internalPort }}
112 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
113 periodSeconds: {{ .Values.readiness.periodSeconds }}
115 {{ toYaml .Values.resources | indent 10 }}
116 {{- if .Values.nodeSelector }}
118 {{ toYaml .Values.nodeSelector | indent 8 }}
120 {{- if .Values.affinity }}
122 {{ toYaml .Values.affinity | indent 8 }}
125 # side car containers
126 - name: filebeat-onap
127 image: "{{ .Values.global.loggingRepository }}/{{ .Values.global.loggingImage }}"
128 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
130 - mountPath: /usr/share/filebeat/filebeat.yml
131 subPath: filebeat.yml
133 - mountPath: /var/log/onap
134 name: {{ include "common.fullname" . }}-logs
135 - mountPath: /usr/share/filebeat/data
136 name: aai-sparky-filebeat
142 - name: {{ include "common.fullname" . }}-config
144 name: {{ include "common.fullname" . }}
145 - name: {{ include "common.fullname" . }}-auth-config
147 secretName: {{ include "common.fullname" . }}
148 - name: {{ include "common.fullname" . }}-camel-rests-config
150 name: {{ include "common.fullname" . }}-camel-rests
151 - name: {{ include "common.fullname" . }}-descriptors-config
153 name: {{ include "common.fullname" . }}-descriptors
154 - name: {{ include "common.fullname" . }}-filters-config
156 name: {{ include "common.fullname" . }}-filters
157 - name: {{ include "common.fullname" . }}-portal-config
159 name: {{ include "common.fullname" . }}-portal
160 - name: {{ include "common.fullname" . }}-portal-boot-inf-config
162 name: {{ include "common.fullname" . }}-boot-inf
163 - name: {{ include "common.fullname" . }}-schemas-config
165 name: {{ include "common.fullname" . }}-schemas
166 - name: {{ include "common.fullname" . }}-spring-beans-config
168 name: {{ include "common.fullname" . }}-spring-beans
169 - name: filebeat-conf
172 - name: {{ include "common.fullname" . }}-logs
174 - name: aai-sparky-filebeat
176 - name: {{ include "common.fullname" . }}-log-conf
178 name: {{ include "common.fullname" . }}-log
179 restartPolicy: {{ .Values.global.restartPolicy | default .Values.restartPolicy }}
181 - name: "{{ include "common.namespace" . }}-docker-registry-key"