1 # Copyright © 2017 Amdocs, Bell Canada
2 # Modifications Copyright © 2018-2019 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: apps/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: {{ include "common.release" . }}
25 heritage: {{ .Release.Service }}
27 serviceName: {{ include "common.servicename" . }}
28 replicas: {{ .Values.replicaCount }}
31 app: {{ include "common.name" . }}
35 app: {{ include "common.name" . }}
36 release: {{ include "common.release" . }}
43 - {{ include "common.release" . }}-galera-config
45 - {{ .Values.global.nexus.nameOverride }}
51 fieldPath: metadata.namespace
52 image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
53 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
54 name: {{ include "common.name" . }}-readiness
56 - name: {{ include "common.name" . }}
57 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
58 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
60 - containerPort: {{ .Values.service.externalPort }}
61 - containerPort: {{ .Values.service.externalPort2 }}
62 {{- if eq .Values.liveness.enabled true }}
65 port: {{ .Values.service.externalPort }}
66 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
67 periodSeconds: {{ .Values.liveness.periodSeconds }}
71 port: {{ .Values.service.externalPort }}
72 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
73 periodSeconds: {{ .Values.readiness.periodSeconds }}
76 value: "{{ .Values.replicaCount }}"
78 {{- include "common.secret.envFromSecret" (dict "global" . "uid" "db-secret" "key" "login") | indent 12 }}
80 {{- include "common.secret.envFromSecret" (dict "global" . "uid" "db-secret" "key" "password") | indent 12 }}
82 - mountPath: /etc/localtime
85 {{- range $path, $bytes := .Files.Glob "resources/secrets/*" }}
86 - mountPath: /tmp/policy-install/config/{{ base $path }}
88 subPath: {{ base $path }}
90 {{- range $path, $bytes := .Files.Glob "resources/configmaps/*" }}
91 - mountPath: /tmp/policy-install/config/{{ base $path }}
93 subPath: {{ base $path }}
95 - mountPath: /var/log/onap
98 {{ include "common.resources" . | indent 12 }}
99 {{- if .Values.nodeSelector }}
100 - image: "{{ .Values.global.loggingRepository | default .Values.loggingRepository }}/{{ .Values.loggingImage }}"
101 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
104 - mountPath: /usr/share/filebeat/filebeat.yml
106 subPath: filebeat.yml
107 - mountPath: /var/log/onap
109 - mountPath: /usr/share/filebeat/data
110 name: policy-data-filebeat
112 {{ toYaml .Values.nodeSelector | indent 10 }}
114 {{- if .Values.affinity }}
116 {{ toYaml .Values.affinity | indent 10 }}
122 - name: filebeat-conf
124 name: {{ include "common.release" . }}-filebeat-configmap
127 - name: policy-data-filebeat
129 - name: drools-config
131 name: {{ include "common.fullname" . }}-configmap
133 {{- range $path, $bytes := .Files.Glob "resources/configmaps/*" }}
134 - key: {{ base $path }}
135 path: {{ base $path }}
138 - name: drools-secret
140 secretName: {{ include "common.fullname" . }}-secret
142 {{- range $path, $bytes := .Files.Glob "resources/secrets/*" }}
143 - key: {{ base $path }}
144 path: {{ base $path }}
148 - name: "{{ include "common.namespace" . }}-docker-registry-key"