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 }}
45 fieldPath: metadata.namespace
46 image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
47 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
48 name: {{ include "common.name" . }}-readiness
50 - name: {{ include "common.name" . }}
51 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
52 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
54 - containerPort: {{ .Values.service.internalPort }}
55 # disable liveness probe when breakpoints set in debugger
56 # so K8s doesn't restart unresponsive container
57 {{ if .Values.liveness.enabled }}
60 port: {{ .Values.service.internalPort }}
61 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
62 periodSeconds: {{ .Values.liveness.periodSeconds }}
66 port: {{ .Values.service.internalPort }}
67 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
68 periodSeconds: {{ .Values.readiness.periodSeconds }}
71 value: "/opt/app/champ-service/appconfig"
74 - name: KEY_STORE_PASSWORD
77 name: {{ template "common.fullname" . }}-pass
78 key: KEY_STORE_PASSWORD
79 - name: KEY_MANAGER_PASSWORD
82 name: {{ template "common.fullname" . }}-pass
83 key: KEY_MANAGER_PASSWORD
85 value: "/opt/app/champ-service/dynamic/conf"
87 - mountPath: /etc/localtime
90 - mountPath: /opt/app/champ-service/appconfig/champ-api.properties
91 name: {{ include "common.fullname" . }}-config
92 subPath: champ-api.properties
93 - mountPath: /opt/app/champ-service/appconfig/auth
94 name: {{ include "common.fullname" . }}-secrets
95 - mountPath: /opt/app/champ-service/dynamic/conf/champ-beans.xml
96 name: {{ include "common.fullname" . }}-dynamic-config
97 subPath: champ-beans.xml
98 - mountPath: /opt/app/champ-service/bundleconfig/etc/logback.xml
99 name: {{ include "common.fullname" . }}-logback-config
101 - mountPath: /var/log/onap
102 name: {{ include "common.fullname" . }}-logs
104 {{ include "common.resources" . | indent 12 }}
105 {{- if .Values.nodeSelector }}
107 {{ toYaml .Values.nodeSelector | indent 10 }}
109 {{- if .Values.affinity }}
111 {{ toYaml .Values.affinity | indent 10 }}
114 # side car containers
115 - name: filebeat-onap
116 image: "{{ .Values.global.loggingRepository }}/{{ .Values.global.loggingImage }}"
117 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
119 - mountPath: /usr/share/filebeat/filebeat.yml
120 subPath: filebeat.yml
122 - mountPath: /var/log/onap
123 name: {{ include "common.fullname" . }}-logs
124 - mountPath: /usr/share/filebeat/data
131 - name: {{ include "common.fullname" . }}-config
133 name: {{ include "common.fullname" . }}
135 - key: champ-api.properties
136 path: champ-api.properties
137 - name: {{ include "common.fullname" . }}-secrets
139 secretName: {{ include "common.fullname" . }}-champ
140 - name: {{ include "common.fullname" . }}-dynamic-config
142 name: {{ include "common.fullname" . }}-dynamic
144 - key: champ-beans.xml
145 path: champ-beans.xml
146 - name: {{ include "common.fullname" . }}-logs
148 - name: {{ include "common.fullname" . }}-logback-config
150 name: {{ include "common.fullname" . }}-log-configmap
154 - name: filebeat-conf
160 - name: "{{ include "common.namespace" . }}-docker-registry-key"