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/
67 name: {{ include "common.fullname" . }}-auth-config
69 - mountPath: /opt/app/sparky/config/portal/
70 name: {{ include "common.fullname" . }}-portal-config
72 - mountPath: /opt/app/sparky/config/portal/BOOT-INF/classes/
73 name: {{ include "common.fullname" . }}-portal-config-props
75 - mountPath: /var/log/onap
76 name: {{ include "common.fullname" . }}-logs
78 - mountPath: /opt/app/sparky/config/application.properties
79 name: {{ include "common.fullname" . }}-properties
80 subPath: application.properties
82 - mountPath: /opt/app/sparky/config/application-resources.properties
83 name: {{ include "common.fullname" . }}-properties
84 subPath: application-resources.properties
86 - mountPath: /opt/app/sparky/config/application-ssl.properties
87 name: {{ include "common.fullname" . }}-properties
88 subPath: application-ssl.properties
90 - mountPath: /opt/app/sparky/config/application-oxm-default.properties
91 name: {{ include "common.fullname" . }}-properties
92 subPath: application-oxm-default.properties
94 - mountPath: /opt/app/sparky/config/application-oxm-override.properties
95 name: {{ include "common.fullname" . }}-properties
96 subPath: application-oxm-override.properties
98 - mountPath: /opt/app/sparky/config/application-oxm-schema-prod.properties
99 name: {{ include "common.fullname" . }}-properties
100 subPath: application-oxm-schema-prod.properties
102 - mountPath: /opt/app/sparky/config/roles.config
103 name: {{ include "common.fullname" . }}-properties
104 subPath: roles.config
106 - mountPath: /opt/app/sparky/config/users.config
107 name: {{ include "common.fullname" . }}-properties
108 subPath: users.config
111 - containerPort: {{ .Values.service.internalPort }}
112 - containerPort: {{ .Values.service.internalPort2 }}
113 # disable liveness probe when breakpoints set in debugger
114 # so K8s doesn't restart unresponsive container
115 {{- if eq .Values.liveness.enabled true }}
118 port: {{ .Values.service.internalPort }}
119 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
120 periodSeconds: {{ .Values.liveness.periodSeconds }}
124 port: {{ .Values.service.internalPort }}
125 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
126 periodSeconds: {{ .Values.readiness.periodSeconds }}
128 {{ include "common.resources" . | indent 12 }}
129 {{- if .Values.nodeSelector }}
131 {{ toYaml .Values.nodeSelector | indent 8 }}
133 {{- if .Values.affinity }}
135 {{ toYaml .Values.affinity | indent 8 }}
138 # side car containers
139 - name: filebeat-onap
140 image: "{{ .Values.global.loggingRepository }}/{{ .Values.global.loggingImage }}"
141 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
143 - mountPath: /usr/share/filebeat/filebeat.yml
144 subPath: filebeat.yml
146 - mountPath: /var/log/onap
147 name: {{ include "common.fullname" . }}-logs
148 - mountPath: /usr/share/filebeat/data
149 name: aai-sparky-filebeat
156 - name: {{ include "common.fullname" . }}-properties
158 name: {{ include "common.fullname" . }}-prop
160 - name: {{ include "common.fullname" . }}-config
162 name: {{ include "common.fullname" . }}
164 - name: {{ include "common.fullname" . }}-portal-config
166 name: {{ include "common.fullname" . }}-portal
168 - name: {{ include "common.fullname" . }}-portal-config-props
170 name: {{ include "common.fullname" . }}-portal-props
172 - name: {{ include "common.fullname" . }}-auth-config
174 secretName: {{ include "common.fullname" . }}
175 - name: filebeat-conf
178 - name: {{ include "common.fullname" . }}-logs
180 - name: aai-sparky-filebeat
184 restartPolicy: {{ .Values.global.restartPolicy | default .Values.restartPolicy }}
186 - name: "{{ include "common.namespace" . }}-docker-registry-key"