2 # Copyright © 2017 Amdocs, Bell Canada
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.
17 apiVersion: extensions/v1beta1
20 name: {{ include "common.fullname" . }}
21 namespace: {{ include "common.namespace" . }}
23 app: {{ include "common.name" . }}
24 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
25 release: {{ include "common.release" . }}
26 heritage: {{ .Release.Service }}
28 replicas: {{ .Values.replicaCount }}
32 app: {{ include "common.name" . }}
33 release: {{ include "common.release" . }}
36 - name: {{ include "common.name" . }}
37 image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.image }}
38 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
40 - containerPort: {{ .Values.service.internalPort }}
41 # disable liveness probe when breakpoints set in debugger
42 # so K8s doesn't restart unresponsive container
43 {{ if .Values.liveness.enabled }}
46 port: {{ .Values.service.internalPort }}
47 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
48 periodSeconds: {{ .Values.liveness.periodSeconds }}
50 {{ if .Values.readiness.enabled }}
53 port: {{ .Values.service.internalPort }}
54 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
55 periodSeconds: {{ .Values.readiness.periodSeconds }}
59 value: "{{ .Values.config.appDir }}"
61 value: "{{ .Values.config.configDir }}"
63 value: "{{ .Values.config.maxHeap }}"
65 - mountPath: /etc/localtime
68 - mountPath: {{ .Values.config.appDir }}/application.properties
69 name: root-config-app-prop
70 subPath: application.properties
71 - mountPath: {{ .Values.config.configDir }}/
73 - mountPath: {{ .Values.config.configAuthDir }}/
75 - mountPath: {{ .Values.config.configTopicsDir }}/
77 - mountPath: {{ .Values.config.rulesDir }}/
80 {{ include "common.resources" . | indent 12 }}
81 {{- if .Values.nodeSelector }}
83 {{ toYaml .Values.nodeSelector | indent 10 }}
85 {{- if .Values.affinity }}
87 {{ toYaml .Values.affinity | indent 10 }}
90 # Filebeat sidecar container
91 - name: {{ include "common.name" . }}-filebeat-onap
92 image: {{ include "repositoryGenerator.image.logging" . }}
93 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
95 - name: {{ include "common.fullname" . }}-filebeat-conf
96 mountPath: /usr/share/filebeat/filebeat.yml
98 - name: {{ include "common.fullname" . }}-data-filebeat
99 mountPath: /usr/share/filebeat/data
100 - name: {{ include "common.fullname" . }}-logs
101 mountPath: /opt/app/logs
107 - name: {{ include "common.fullname" . }}-filebeat-conf
109 name: {{ include "common.release" . }}-pomba-filebeat-configmap
110 - name: {{ include "common.fullname" . }}-data-filebeat
112 - name: root-config-app-prop
114 name: {{ include "common.fullname" . }}-root-config
116 - name: {{ include "common.fullname" . }}-logs
120 name: {{ include "common.fullname" . }}-config-properties
123 - key: validation-service.properties
124 path: validation-service.properties
125 - key: validation-service-auth.properties
126 path: validation-service-auth.properties
127 - key: rule-indexing.properties
128 path: rule-indexing.properties
129 - key: rule-data-dictionary.properties
130 path: rule-data-dictionary.properties
131 - key: aai-environment.properties
132 path: aai-environment.properties
133 - key: schemaIngest.properties
134 path: schemaIngest.properties
135 - key: auth_policy.json
136 path: auth_policy.json
139 secretName: {{ include "common.fullname" . }}-config-auth-secret
141 - key: tomcat_keystore
142 path: tomcat_keystore
143 - key: client-cert-onap.p12
144 path: client-cert-onap.p12
145 - name: config-topics
147 name: {{ include "common.fullname" . }}-config-topics
150 - key: topic-poa-audit-result.properties
151 path: topic-poa-audit-result.properties
152 - key: topic-poa-rule-validation.properties
153 path: topic-poa-rule-validation.properties
156 name: {{ include "common.fullname" . }}-rules
159 - key: default-rules.groovy
160 path: default-rules.groovy
162 - name: "{{ include "common.namespace" . }}-docker-registry-key"