3 # ============LICENSE_START=======================================================
5 # ================================================================================
6 # Copyright (c) 2018 AT&T Intellectual Property. All rights reserved.
7 # Copyright (c) 2020 Nokia Intellectual Property. All rights reserved.
8 # Copyright (c) 2020 Orange Intellectual Property. All rights reserved.
9 # ================================================================================
10 # Licensed under the Apache License, Version 2.0 (the "License");
11 # you may not use this file except in compliance with the License.
12 # You may obtain a copy of the License at
14 # http://www.apache.org/licenses/LICENSE-2.0
16 # Unless required by applicable law or agreed to in writing, software
17 # distributed under the License is distributed on an "AS IS" BASIS,
18 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19 # See the License for the specific language governing permissions and
20 # limitations under the License.
21 # ============LICENSE_END=========================================================
26 name: {{ include "common.fullname" . }}
27 namespace: {{ include "common.namespace" . }}
29 app: {{ include "common.name" . }}
30 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
31 release: {{ include "common.release" . }}
32 heritage: {{ .Release.Service }}
34 replicas: {{ .Values.replicaCount }}
37 app: {{ include "common.name" . }}
41 app: {{ include "common.name" . }}
42 release: {{ include "common.release" . }}
43 name: {{ include "common.name" . }}
45 checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
47 hostname: aai-graphadmin
48 {{ if .Values.global.initContainers.enabled }}
51 {{ if .Values.global.jobs.migration.enabled }}
55 - {{ include "common.release" . }}-aai-graphadmin-migration
56 {{ else if .Values.global.jobs.createSchema.enabled }}
60 - {{ include "common.release" . }}-aai-graphadmin-create-db-schema
65 {{- if .Values.global.cassandra.localCluster }}
78 fieldPath: metadata.namespace
79 image: {{ include "repositoryGenerator.image.readiness" . }}
80 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
81 name: {{ include "common.name" . }}-readiness
84 - name: {{ include "common.name" . }}
85 image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.image }}
86 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
89 value: {{ .Values.global.config.userId | quote }}
90 - name: LOCAL_GROUP_ID
91 value: {{ .Values.global.config.groupId | quote }}
93 - mountPath: /etc/localtime
96 - mountPath: /opt/app/aai-graphadmin/resources/etc/appprops/janusgraph-realtime.properties
97 name: {{ include "common.fullname" . }}-config
98 subPath: janusgraph-realtime.properties
99 - mountPath: /opt/app/aai-graphadmin/resources/etc/appprops/janusgraph-cached.properties
100 name: {{ include "common.fullname" . }}-config
101 subPath: janusgraph-cached.properties
102 - mountPath: /opt/app/aai-graphadmin/resources/etc/appprops/aaiconfig.properties
103 name: {{ include "common.fullname" . }}-config
104 subPath: aaiconfig.properties
105 - mountPath: /opt/aai/logroot/AAI-RES
106 name: {{ include "common.fullname" . }}-logs
107 - mountPath: /opt/app/aai-graphadmin/resources/logback.xml
108 name: {{ include "common.fullname" . }}-config
110 - mountPath: /opt/app/aai-graphadmin/resources/localhost-access-logback.xml
111 name: {{ include "common.fullname" . }}-config
112 subPath: localhost-access-logback.xml
113 - mountPath: /opt/app/aai-graphadmin/resources/etc/auth/realm.properties
114 name: {{ include "common.fullname" . }}-config
115 subPath: realm.properties
116 - mountPath: /opt/app/aai-graphadmin/resources/application.properties
117 name: {{ include "common.fullname" . }}-config
118 subPath: application.properties
120 {{ range $job := .Values.global.config.auth.files }}
121 - mountPath: /opt/app/aai-graphadmin/resources/etc/auth/{{ . }}
122 name: {{ include "common.fullname" $global }}-auth-truststore-sec
126 - containerPort: {{ .Values.service.internalPort }}
127 - containerPort: {{ .Values.service.internalPort2 }}
128 # disable liveness probe when breakpoints set in debugger
129 # so K8s doesn't restart unresponsive container
130 {{ if .Values.liveness.enabled }}
133 port: {{ .Values.service.internalPort }}
134 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
135 periodSeconds: {{ .Values.liveness.periodSeconds }}
139 port: {{ .Values.service.internalPort }}
140 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
141 periodSeconds: {{ .Values.readiness.periodSeconds }}
143 {{ include "common.resources" . }}
144 {{- if .Values.nodeSelector }}
146 {{ toYaml .Values.nodeSelector | indent 8 }}
148 {{- if .Values.affinity }}
150 {{ toYaml .Values.affinity | indent 8 }}
153 # side car containers
154 - name: filebeat-onap
155 image: {{ include "repositoryGenerator.image.logging" . }}
156 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
158 - mountPath: /usr/share/filebeat/filebeat.yml
159 subPath: filebeat.yml
161 - mountPath: /var/log/onap
162 name: {{ include "common.fullname" . }}-logs
163 - mountPath: /usr/share/filebeat/data
164 name: {{ include "common.fullname" . }}-filebeat
170 - name: filebeat-conf
173 - name: {{ include "common.fullname" . }}-logs
175 - name: {{ include "common.fullname" . }}-filebeat
177 - name: {{ include "common.fullname" . }}-config
179 name: {{ include "common.fullname" . }}-configmap
180 - name: {{ include "common.fullname" . }}-auth-truststore-sec
182 secretName: aai-common-truststore
184 {{ range $job := .Values.global.config.auth.files }}
188 restartPolicy: {{ .Values.restartPolicy }}
190 - name: "{{ include "common.namespace" . }}-docker-registry-key"