1 # Copyright © 2017 Amdocs, Bell Canada
2 # Modifications Copyright © 2018 AT&T
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
8 # http://www.apache.org/licenses/LICENSE-2.0
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
16 apiVersion: extensions/v1beta1
19 name: {{ include "common.fullname" . }}
20 namespace: {{ include "common.namespace" . }}
22 app: {{ include "common.name" . }}
23 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
24 release: {{ .Release.Name }}
25 heritage: {{ .Release.Service }}
27 replicas: {{ .Values.replicaCount }}
30 app: {{ include "common.name" . }}
34 app: {{ include "common.name" . }}
35 release: {{ .Release.Name }}
36 name: {{ include "common.name" . }}
53 fieldPath: metadata.namespace
54 image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
55 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
56 name: {{ include "common.name" . }}-readiness
58 - name: {{ include "common.name" . }}
59 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
60 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
63 - mountPath: /etc/localtime
66 - mountPath: /opt/app/sparky/config/auth/client-cert-onap.p12
67 name: {{ include "common.fullname" . }}-auth-config
68 subPath: client-cert-onap.p12
70 - mountPath: /opt/app/sparky/config/auth/csp-cookie-filter.properties
71 name: {{ include "common.fullname" . }}-auth-config
72 subPath: csp-cookie-filter.properties
74 - mountPath: /opt/app/sparky/config/auth/org.onap.aai.p12
75 name: {{ include "common.fullname" . }}-auth-config
76 subPath: org.onap.aai.p12
78 - mountPath: /opt/app/sparky/config/auth/truststoreONAPall.jks
79 name: aai-common-aai-auth-mount
80 subPath: truststoreONAPall.jks
82 - mountPath: /opt/app/sparky/config/portal/
83 name: {{ include "common.fullname" . }}-portal-config
85 - mountPath: /opt/app/sparky/config/portal/BOOT-INF/classes/
86 name: {{ include "common.fullname" . }}-portal-config-props
88 - mountPath: /var/log/onap
89 name: {{ include "common.fullname" . }}-logs
91 - mountPath: /opt/app/sparky/config/application.properties
92 name: {{ include "common.fullname" . }}-properties
93 subPath: application.properties
95 - mountPath: /opt/app/sparky/config/application-resources.properties
96 name: {{ include "common.fullname" . }}-properties
97 subPath: application-resources.properties
99 - mountPath: /opt/app/sparky/config/application-ssl.properties
100 name: {{ include "common.fullname" . }}-properties
101 subPath: application-ssl.properties
103 - mountPath: /opt/app/sparky/config/application-oxm-default.properties
104 name: {{ include "common.fullname" . }}-properties
105 subPath: application-oxm-default.properties
107 - mountPath: /opt/app/sparky/config/application-oxm-override.properties
108 name: {{ include "common.fullname" . }}-properties
109 subPath: application-oxm-override.properties
111 - mountPath: /opt/app/sparky/config/application-oxm-schema-prod.properties
112 name: {{ include "common.fullname" . }}-properties
113 subPath: application-oxm-schema-prod.properties
115 - mountPath: /opt/app/sparky/config/roles.config
116 name: {{ include "common.fullname" . }}-properties
117 subPath: roles.config
119 - mountPath: /opt/app/sparky/config/users.config
120 name: {{ include "common.fullname" . }}-properties
121 subPath: users.config
124 - containerPort: {{ .Values.service.internalPort }}
125 # disable liveness probe when breakpoints set in debugger
126 # so K8s doesn't restart unresponsive container
127 {{- if eq .Values.liveness.enabled true }}
130 port: {{ .Values.service.internalPort }}
131 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
132 periodSeconds: {{ .Values.liveness.periodSeconds }}
136 port: {{ .Values.service.internalPort }}
137 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
138 periodSeconds: {{ .Values.readiness.periodSeconds }}
140 {{ include "common.resources" . }}
141 {{- if .Values.nodeSelector }}
143 {{ toYaml .Values.nodeSelector | indent 8 }}
145 {{- if .Values.affinity }}
147 {{ toYaml .Values.affinity | indent 8 }}
150 # side car containers
151 - name: filebeat-onap
152 image: "{{ .Values.global.loggingRepository }}/{{ .Values.global.loggingImage }}"
153 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
155 - mountPath: /usr/share/filebeat/filebeat.yml
156 subPath: filebeat.yml
158 - mountPath: /var/log/onap
159 name: {{ include "common.fullname" . }}-logs
160 - mountPath: /usr/share/filebeat/data
161 name: aai-sparky-filebeat
163 {{ include "common.resources" . }}
170 - name: {{ include "common.fullname" . }}-properties
172 name: {{ include "common.fullname" . }}-prop
174 - name: {{ include "common.fullname" . }}-config
176 name: {{ include "common.fullname" . }}
178 - name: {{ include "common.fullname" . }}-portal-config
180 name: {{ include "common.fullname" . }}-portal
182 - name: {{ include "common.fullname" . }}-portal-config-props
184 name: {{ include "common.fullname" . }}-portal-props
186 - name: {{ include "common.fullname" . }}-auth-config
188 secretName: {{ include "common.fullname" . }}
190 - name: aai-common-aai-auth-mount
192 secretName: aai-common-aai-auth
194 - name: filebeat-conf
197 - name: {{ include "common.fullname" . }}-logs
199 - name: aai-sparky-filebeat
203 restartPolicy: {{ .Values.global.restartPolicy | default .Values.restartPolicy }}
205 - name: "{{ include "common.namespace" . }}-docker-registry-key"