1 # Copyright © 2018 Amdocs, AT&T
2 # Modifications Copyright © 2018 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.
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 }}
31 app: {{ include "common.name" . }}
32 release: {{ .Release.Name }}
35 - name: {{ include "common.name" . }}
36 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
37 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
39 - containerPort: {{ .Values.service.internalPort }}
40 # disable liveness probe when breakpoints set in debugger
41 # so K8s doesn't restart unresponsive container
42 {{ if .Values.liveness.enabled }}
45 port: {{ .Values.service.internalPort }}
46 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
47 periodSeconds: {{ .Values.liveness.periodSeconds }}
51 port: {{ .Values.service.internalPort }}
52 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
53 periodSeconds: {{ .Values.readiness.periodSeconds }}
56 value: "/opt/app/champ-service/appconfig"
59 - name: KEY_STORE_PASSWORD
62 name: {{ template "common.fullname" . }}-pass
63 key: KEY_STORE_PASSWORD
64 - name: KEY_MANAGER_PASSWORD
67 name: {{ template "common.fullname" . }}-pass
68 key: KEY_MANAGER_PASSWORD
70 value: "/opt/app/champ-service/dynamic/conf"
72 - mountPath: /etc/localtime
75 - mountPath: /opt/app/champ-service/appconfig/champ-api.properties
76 name: {{ include "common.fullname" . }}-config
77 subPath: champ-api.properties
78 - mountPath: /opt/app/champ-service/appconfig/auth
79 name: {{ include "common.fullname" . }}-secrets
80 - mountPath: /opt/app/champ-service/dynamic/conf/champ-beans.xml
81 name: {{ include "common.fullname" . }}-dynamic-config
82 subPath: champ-beans.xml
83 - mountPath: /opt/app/champ-service/bundleconfig/etc/logback.xml
84 name: {{ include "common.fullname" . }}-logback-config
86 - mountPath: /var/log/onap
87 name: {{ include "common.fullname" . }}-logs
89 {{ toYaml .Values.resources | indent 12 }}
90 {{- if .Values.nodeSelector }}
92 {{ toYaml .Values.nodeSelector | indent 10 }}
94 {{- if .Values.affinity }}
96 {{ toYaml .Values.affinity | indent 10 }}
100 - name: filebeat-onap
101 image: "{{ .Values.global.loggingRepository }}/{{ .Values.global.loggingImage }}"
102 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
104 - mountPath: /usr/share/filebeat/filebeat.yml
105 subPath: filebeat.yml
107 - mountPath: /var/log/onap
108 name: {{ include "common.fullname" . }}-logs
109 - mountPath: /usr/share/filebeat/data
116 - name: {{ include "common.fullname" . }}-config
118 name: {{ include "common.fullname" . }}
120 - key: champ-api.properties
121 path: champ-api.properties
122 - name: {{ include "common.fullname" . }}-secrets
124 secretName: {{ include "common.fullname" . }}-champ
125 - name: {{ include "common.fullname" . }}-dynamic-config
127 name: {{ include "common.fullname" . }}-dynamic
129 - key: champ-beans.xml
130 path: champ-beans.xml
131 - name: {{ include "common.fullname" . }}-logs
133 - name: {{ include "common.fullname" . }}-logback-config
135 name: {{ include "common.fullname" . }}-log-configmap
139 - name: filebeat-conf
145 - name: "{{ include "common.namespace" . }}-docker-registry-key"