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" . }}
39 - name: {{ include "common.name" . }}
40 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
41 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
44 value: /opt/app/search-data-service/config/
45 - name: KEY_STORE_PASSWORD
46 value: {{ .Values.config.keyStorePassword }}
47 - name: KEY_MANAGER_PASSWORD
48 value: {{ .Values.config.keyManagerPassword }}
50 - mountPath: /etc/localtime
53 - mountPath: /opt/app/search-data-service/config/filter-config.json
54 subPath: filter-config.json
55 name: {{ include "common.fullname" . }}-service-config
56 - mountPath: /opt/app/search-data-service/config/elastic-search.properties
57 subPath: elastic-search.properties
58 name: {{ include "common.fullname" . }}-service-config
59 - mountPath: /opt/app/search-data-service/config/analysis-config.json
60 subPath: analysis-config.json
61 name: {{ include "common.fullname" . }}-service-config
62 - mountPath: /opt/app/search-data-service/config/es-payload-translation.json
63 subPath: es-payload-translation.json
64 name: {{ include "common.fullname" . }}-service-config
65 - mountPath: /opt/app/search-data-service/config/dynamic-custom-template.json
66 subPath: dynamic-custom-template.json
67 name: {{ include "common.fullname" . }}-service-config
68 - mountPath: /opt/app/search-data-service/config/auth/tomcat_keystore
69 subPath: tomcat_keystore
70 name: {{ include "common.fullname" . }}-service-auth-config
71 - mountPath: /opt/app/search-data-service/config/auth/search_policy.json
72 subPath: search_policy.json
73 name: {{ include "common.fullname" . }}-search-policy-config
74 - mountPath: /var/log/onap
75 name: {{ include "common.fullname" . }}-service-logs
76 - mountPath: /opt/app/search-data-service/bundleconfig/etc/logback.xml
77 name: {{ include "common.fullname" . }}-service-log-conf
80 - containerPort: {{ .Values.service.internalPort }}
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.internalPort }}
87 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
88 periodSeconds: {{ .Values.liveness.periodSeconds }}
92 port: {{ .Values.service.internalPort }}
93 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
94 periodSeconds: {{ .Values.readiness.periodSeconds }}
96 {{ include "common.resources" . }}
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" . }}-service-logs
116 - mountPath: /usr/share/filebeat/data
117 name: {{ include "common.fullname" . }}-service-filebeat
123 - name: {{ include "common.fullname" . }}-service-config
125 name: {{ include "common.fullname" . }}
126 - name: {{ include "common.fullname" . }}-service-auth-config
128 secretName: {{ include "common.fullname" . }}-keystone
129 - name: {{ include "common.fullname" . }}-search-policy-config
131 secretName: {{ include "common.fullname" . }}-policy
132 - name: filebeat-conf
135 - name: {{ include "common.fullname" . }}-service-logs
137 - name: {{ include "common.fullname" . }}-service-filebeat
139 - name: {{ include "common.fullname" . }}-service-log-conf
141 name: {{ include "common.fullname" . }}-service-log
142 restartPolicy: {{ .Values.global.restartPolicy | default .Values.restartPolicy }}
144 - name: "{{ include "common.namespace" . }}-docker-registry-key"