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" . }}
38 - name: {{ include "common.name" . }}
39 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
40 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
43 value: /opt/app/sparky/appconfig/
44 - name: KEYSTORE_ALIAS_PASSWORD
45 value: {{ .Values.config.keystoreAliasPassword }}
46 - name: KEYSTORE_PASSWORD
47 value: {{ .Values.config.keyStorePassword }}
48 - name: SPARKY_SSL_ENABLED
50 - name: SPARKY_PORTAL_ENABLED
53 - mountPath: /etc/localtime
56 - mountPath: /opt/app/sparky/appconfig/auth/
57 name: {{ include "common.fullname" . }}-auth-config
58 - mountPath: /opt/app/sparky/appconfig/camel-rests/
59 name: {{ include "common.fullname" . }}-camel-rests-config
60 - mountPath: /opt/app/sparky/appconfig/descriptors/
61 name: {{ include "common.fullname" . }}-descriptors-config
62 - mountPath: /opt/app/sparky/appconfig/filters/
63 name: {{ include "common.fullname" . }}-filters-config
64 - mountPath: /opt/app/sparky/appconfig/
65 name: {{ include "common.fullname" . }}-config
66 - mountPath: /opt/app/sparky/appconfig/portal
67 name: {{ include "common.fullname" . }}-portal-config
68 - mountPath: /opt/app/sparky/appconfig/portal/BOOT-INF/classes
69 name: {{ include "common.fullname" . }}-portal-boot-inf-config
70 - mountPath: /opt/app/sparky/appconfig/schemas
71 name: {{ include "common.fullname" . }}-schemas-config
72 - mountPath: /opt/app/sparky/appconfig/spring-beans/
73 name: {{ include "common.fullname" . }}-spring-beans-config
74 - mountPath: /var/log/onap
75 name: {{ include "common.fullname" . }}-logs
76 - mountPath: /opt/app/sparky/appconfig/logging/
77 name: {{ include "common.fullname" . }}-log-conf
79 - containerPort: {{ .Values.service.internalPort }}
80 - containerPort: {{ .Values.service.internalPort2 }}
81 # disable liveness probe when breakpoints set in debugger
82 # so K8s doesn't restart unresponsive container
83 {{- if eq .Values.liveness.enabled true }}
86 port: {{ .Values.service.internalPort2 }}
87 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
88 periodSeconds: {{ .Values.liveness.periodSeconds }}
92 port: {{ .Values.service.internalPort2 }}
93 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
94 periodSeconds: {{ .Values.readiness.periodSeconds }}
96 {{ toYaml .Values.resources | indent 10 }}
97 {{- if .Values.nodeSelector }}
99 {{ toYaml .Values.nodeSelector | indent 8 }}
101 {{- if .Values.affinity }}
103 {{ toYaml .Values.affinity | indent 8 }}
106 # side car containers
107 - name: filebeat-onap
108 image: "{{ .Values.global.loggingRepository }}/{{ .Values.global.loggingImage }}"
109 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
111 - mountPath: /usr/share/filebeat/filebeat.yml
112 subPath: filebeat.yml
114 - mountPath: /var/log/onap
115 name: {{ include "common.fullname" . }}-logs
116 - mountPath: /usr/share/filebeat/data
117 name: aai-sparky-filebeat
123 - name: {{ include "common.fullname" . }}-config
125 name: {{ include "common.fullname" . }}
126 - name: {{ include "common.fullname" . }}-auth-config
128 secretName: {{ include "common.fullname" . }}
129 - name: {{ include "common.fullname" . }}-camel-rests-config
131 name: {{ include "common.fullname" . }}-camel-rests
132 - name: {{ include "common.fullname" . }}-descriptors-config
134 name: {{ include "common.fullname" . }}-descriptors
135 - name: {{ include "common.fullname" . }}-filters-config
137 name: {{ include "common.fullname" . }}-filters
138 - name: {{ include "common.fullname" . }}-portal-config
140 name: {{ include "common.fullname" . }}-portal
141 - name: {{ include "common.fullname" . }}-portal-boot-inf-config
143 name: {{ include "common.fullname" . }}-boot-inf
144 - name: {{ include "common.fullname" . }}-schemas-config
146 name: {{ include "common.fullname" . }}-schemas
147 - name: {{ include "common.fullname" . }}-spring-beans-config
149 name: {{ include "common.fullname" . }}-spring-beans
150 - name: filebeat-conf
153 - name: {{ include "common.fullname" . }}-logs
155 - name: aai-sparky-filebeat
157 - name: {{ include "common.fullname" . }}-log-conf
159 name: {{ include "common.fullname" . }}-log
160 restartPolicy: {{ .Values.global.restartPolicy | default .Values.restartPolicy }}
162 - name: "{{ include "common.namespace" . }}-docker-registry-key"