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/schema-ingest.properties
96 subPath: schema-ingest.properties
97 name: {{ include "common.fullname" . }}-config
98 - mountPath: /opt/app/spike/config/edgeprops-ingest.properties
99 subPath: edgeprops-ingest.properties
100 name: {{ include "common.fullname" . }}-config
101 - mountPath: /opt/app/spike/config/model/edge_props
102 name: {{ include "common.fullname" . }}-edge-props-config
103 - mountPath: /opt/app/spike/bundleconfig/etc/logback.xml
104 name: {{ include "common.fullname" . }}-config
106 - mountPath: /var/log/onap
107 name: {{ include "common.fullname" . }}-logs
109 {{ include "common.resources" . }}
110 {{- if .Values.nodeSelector }}
112 {{ toYaml .Values.nodeSelector | indent 8 }}
114 {{- if .Values.affinity }}
116 {{ toYaml .Values.affinity | indent 8 }}
119 # side car containers
120 - name: filebeat-onap
121 image: "{{ .Values.global.loggingRepository }}/{{ .Values.global.loggingImage }}"
122 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
124 - mountPath: /usr/share/filebeat/filebeat.yml
125 subPath: filebeat.yml
127 - mountPath: /var/log/onap
128 name: {{ include "common.fullname" . }}-logs
129 - mountPath: /usr/share/filebeat/data
132 {{ include "common.resources" . }}
138 - name: {{ include "common.fullname" . }}-secrets
140 secretName: {{ include "common.fullname" . }}-spike-secrets
141 - name: {{ include "common.fullname" . }}-config
143 name: {{ include "common.fullname" . }}-configmap
145 - key: spike.properties
146 path: spike.properties
147 - key: spike-beans.xml
148 path: spike-beans.xml
149 - key: schema-ingest.properties
150 path: schema-ingest.properties
151 - key: edgeprops-ingest.properties
152 path: edgeprops-ingest.properties
155 - name: {{ include "common.fullname" . }}-edge-props-config
157 name: {{ include "common.fullname" . }}-edge-props-configmap
158 - name: filebeat-conf
161 - name: {{ include "common.fullname" . }}-logs
166 - name: "{{ include "common.namespace" . }}-docker-registry-key"