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" . }}
38 checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
41 - name: {{ include "common.name" . }}
42 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
43 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
46 value: {{ .Values.global.config.userId | quote }}
47 - name: LOCAL_GROUP_ID
48 value: {{ .Values.global.config.groupId | quote }}
50 - mountPath: /etc/localtime
53 - mountPath: /opt/app/aai-schema-service/resources/etc/appprops/aaiconfig.properties
55 subPath: aaiconfig.properties
56 - mountPath: /opt/aai/logroot/AAI-SCHEMA-SERVICE
57 name: {{ include "common.fullname" . }}-logs
58 - mountPath: /opt/app/aai-schema-service/resources/logback.xml
59 name: {{ include "common.fullname" . }}-log-conf
61 - mountPath: /opt/app/aai-schema-service/resources/localhost-access-logback.xml
62 name: localhost-access-log-conf
63 subPath: localhost-access-logback.xml
64 - mountPath: /opt/app/aai-schema-service/resources/etc/auth/realm.properties
66 subPath: realm.properties
67 - mountPath: /opt/app/aai-schema-service/resources/application.properties
69 subPath: application.properties
71 {{ range $job := .Values.global.config.auth.files }}
72 - mountPath: /opt/app/aai-schema-service/resources/etc/auth/{{ . }}
73 name: auth-truststore-sec
77 - containerPort: {{ .Values.service.internalPort }}
78 - containerPort: {{ .Values.service.internalPort2 }}
79 # disable liveness probe when breakpoints set in debugger
80 # so K8s doesn't restart unresponsive container
81 {{ if .Values.liveness.enabled }}
84 port: {{ .Values.service.internalPort }}
85 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
86 periodSeconds: {{ .Values.liveness.periodSeconds }}
90 port: {{ .Values.service.internalPort }}
91 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
92 periodSeconds: {{ .Values.readiness.periodSeconds }}
94 {{ include "common.resources" . | indent 12 }}
95 {{- if .Values.nodeSelector }}
97 {{ toYaml .Values.nodeSelector | indent 8 }}
99 {{- if .Values.affinity }}
101 {{ toYaml .Values.affinity | indent 8 }}
104 # side car containers
105 - name: filebeat-onap
106 image: "{{ .Values.global.loggingRepository }}/{{ .Values.global.loggingImage }}"
107 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
109 - mountPath: /usr/share/filebeat/filebeat.yml
110 subPath: filebeat.yml
112 - mountPath: /var/log/onap
113 name: {{ include "common.fullname" . }}-logs
114 - mountPath: /usr/share/filebeat/data
115 name: {{ include "common.fullname" . }}-filebeat
117 - name: aai-common-aai-auth-mount
119 secretName: aai-common-aai-auth
123 - name: filebeat-conf
126 - name: {{ include "common.fullname" . }}-logs
128 - name: {{ include "common.fullname" . }}-filebeat
130 - name: {{ include "common.fullname" . }}-log-conf
132 name: {{ include "common.fullname" . }}-log
133 - name: localhost-access-log-conf
135 name: {{ include "common.fullname" . }}-localhost-access-log-configmap
136 - name: springapp-conf
138 name: {{ include "common.fullname" . }}-springapp-configmap
139 - name: aaiconfig-conf
141 name: {{ include "common.fullname" . }}-aaiconfig-configmap
144 name: {{ include "common.fullname" . }}-realm-configmap
145 - name: auth-truststore-sec
147 secretName: aai-common-truststore
149 {{ range $job := .Values.global.config.auth.files }}
153 restartPolicy: {{ .Values.restartPolicy }}
155 - name: "{{ include "common.namespace" . }}-docker-registry-key"