1 # Copyright © 2018 Amdocs, AT&T
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 }}
30 app: {{ include "common.name" . }}
31 release: {{ .Release.Name }}
38 - message-router-kafka
44 fieldPath: metadata.namespace
45 image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
46 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
47 name: {{ include "common.name" . }}-readiness
49 - name: {{ .Chart.Name }}
50 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
51 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
53 - containerPort: {{ .Values.service.internalPort }}
54 # disable liveness probe when breakpoints set in debugger
55 # so K8s doesn't restart unresponsive container
56 {{ if .Values.liveness.enabled }}
59 port: {{ .Values.service.internalPort }}
60 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
61 periodSeconds: {{ .Values.liveness.periodSeconds }}
65 port: {{ .Values.service.internalPort }}
66 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
67 periodSeconds: {{ .Values.readiness.periodSeconds }}
70 value: /opt/app/spike/config
71 - name: KEY_STORE_PASSWORD
74 name: {{ template "common.fullname" . }}-pass
75 key: KEY_STORE_PASSWORD
76 - name: KEY_MANAGER_PASSWORD
79 name: {{ template "common.fullname" . }}-pass
80 key: KEY_MANAGER_PASSWORD
82 value: /opt/app/spike/dynamic/conf
84 - mountPath: /etc/localtime
87 - mountPath: /opt/app/spike/config/auth
88 name: {{ include "common.fullname" . }}-secrets
89 - mountPath: /opt/app/spike/dynamic/conf/spike-beans.xml
90 name: {{ include "common.fullname" . }}-config
91 subPath: spike-beans.xml
92 - mountPath: /opt/app/spike/config/spike.properties
93 subPath: spike.properties
94 name: {{ include "common.fullname" . }}-config
95 - mountPath: /opt/app/spike/config/schemaIngest.properties
96 subPath: schemaIngest.properties
97 name: {{ include "common.fullname" . }}-config
98 - mountPath: /opt/app/spike/config/model/edge_props
99 name: {{ include "common.fullname" . }}-edge-props-config
100 - mountPath: /opt/app/spike/bundleconfig/etc/logback.xml
101 name: {{ include "common.fullname" . }}-config
103 - mountPath: /var/log/onap
104 name: {{ include "common.fullname" . }}-logs
106 {{ include "common.resources" . | indent 12 }}
107 {{- if .Values.nodeSelector }}
109 {{ toYaml .Values.nodeSelector | indent 10 }}
111 {{- if .Values.affinity }}
113 {{ toYaml .Values.affinity | indent 10 }}
116 # side car containers
117 - name: filebeat-onap
118 image: "{{ .Values.global.loggingRepository }}/{{ .Values.global.loggingImage }}"
119 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
121 - mountPath: /usr/share/filebeat/filebeat.yml
122 subPath: filebeat.yml
124 - mountPath: /var/log/onap
125 name: {{ include "common.fullname" . }}-logs
126 - mountPath: /usr/share/filebeat/data
133 - name: {{ include "common.fullname" . }}-secrets
135 secretName: {{ include "common.fullname" . }}-spike-secrets
136 - name: {{ include "common.fullname" . }}-config
138 name: {{ include "common.fullname" . }}-configmap
140 - key: spike.properties
141 path: spike.properties
142 - key: spike-beans.xml
143 path: spike-beans.xml
144 - key: schemaIngest.properties
145 path: schemaIngest.properties
148 - name: {{ include "common.fullname" . }}-edge-props-config
150 name: {{ include "common.fullname" . }}-edge-props-configmap
151 - name: filebeat-conf
154 - name: {{ include "common.fullname" . }}-logs
159 - name: "{{ include "common.namespace" . }}-docker-registry-key"