2 # ============LICENSE_START=======================================================
4 # ================================================================================
5 # Copyright © 2018 AT&T Intellectual Property. All rights reserved.
6 # ================================================================================
7 # Licensed under the Apache License, Version 2.0 (the "License");
8 # you may not use this file except in compliance with the License.
9 # You may obtain a copy of the License at
11 # http://www.apache.org/licenses/LICENSE-2.0
13 # Unless required by applicable law or agreed to in writing, software
14 # distributed under the License is distributed on an "AS IS" BASIS,
15 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 # See the License for the specific language governing permissions and
17 # limitations under the License.
18 # ============LICENSE_END=========================================================
20 apiVersion: extensions/v1beta1
23 name: {{ include "common.fullname" . }}
24 namespace: {{ include "common.namespace" . }}
26 app: {{ include "common.name" . }}
27 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
28 release: {{ .Release.Name }}
29 heritage: {{ .Release.Service }}
31 replicas: {{ .Values.replicaCount }}
34 app: {{ include "common.name" . }}
38 app: {{ include "common.name" . }}
39 release: {{ .Release.Name }}
40 name: {{ include "common.name" . }}
42 checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
44 hostname: aai-graphadmin
45 {{ if .Values.global.initContainers.enabled }}
48 {{ if .Values.global.jobs.createSchema.enabled }}
49 - /root/job_complete.py
52 - {{ .Release.Name }}-aai-graphadmin-create-db-schema
64 fieldPath: metadata.namespace
65 image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
66 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
67 name: {{ include "common.name" . }}-readiness
70 - name: {{ include "common.name" . }}
71 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
72 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
75 value: {{ .Values.config.userId | quote }}
76 - name: LOCAL_GROUP_ID
77 value: {{ .Values.config.groupId | quote }}
79 - mountPath: /etc/localtime
82 - mountPath: /opt/app/aai-graphadmin/resources/etc/appprops/janusgraph-realtime.properties
83 name: {{ include "common.fullname" . }}-db-real-conf
84 subPath: janusgraph-realtime.properties
85 - mountPath: /opt/app/aai-graphadmin/resources/etc/appprops/janusgraph-cached.properties
86 name: {{ include "common.fullname" . }}-db-cached-conf
87 subPath: janusgraph-cached.properties
88 - mountPath: /opt/app/aai-graphadmin/resources/etc/appprops/aaiconfig.properties
89 name: {{ include "common.fullname" . }}-aaiconfig-conf
90 subPath: aaiconfig.properties
91 - mountPath: /opt/aai/logroot/AAI-RES
92 name: {{ include "common.fullname" . }}-logs
93 - mountPath: /opt/app/aai-graphadmin/resources/logback.xml
94 name: {{ include "common.fullname" . }}-log-conf
96 - mountPath: /opt/app/aai-graphadmin/resources/localhost-access-logback.xml
97 name: {{ include "common.fullname" . }}-localhost-access-log-conf
98 subPath: localhost-access-logback.xml
99 - mountPath: /opt/app/aai-graphadmin/resources/application.properties
100 name: {{ include "common.fullname" . }}-springapp-conf
101 subPath: application.properties
103 {{ range $job := .Values.global.config.auth.files }}
104 - mountPath: /opt/app/aai-graphadmin/resources/etc/auth/{{ . }}
105 name: {{ include "common.fullname" $global }}-auth-truststore-sec
109 - containerPort: {{ .Values.service.internalPort }}
110 - containerPort: {{ .Values.service.internalPort2 }}
111 # disable liveness probe when breakpoints set in debugger
112 # so K8s doesn't restart unresponsive container
113 {{ if .Values.liveness.enabled }}
116 port: {{ .Values.service.internalPort }}
117 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
118 periodSeconds: {{ .Values.liveness.periodSeconds }}
122 port: {{ .Values.service.internalPort }}
123 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
124 periodSeconds: {{ .Values.readiness.periodSeconds }}
126 {{ include "common.resources" . | indent 12 }}
127 {{- if .Values.nodeSelector }}
129 {{ toYaml .Values.nodeSelector | indent 8 }}
131 {{- if .Values.affinity }}
133 {{ toYaml .Values.affinity | indent 8 }}
136 # side car containers
137 - name: filebeat-onap
138 image: "{{ .Values.global.loggingRepository }}/{{ .Values.global.loggingImage }}"
139 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
141 - mountPath: /usr/share/filebeat/filebeat.yml
142 subPath: filebeat.yml
144 - mountPath: /var/log/onap
145 name: {{ include "common.fullname" . }}-logs
146 - mountPath: /usr/share/filebeat/data
147 name: {{ include "common.fullname" . }}-filebeat
153 - name: filebeat-conf
156 - name: {{ include "common.fullname" . }}-logs
158 - name: {{ include "common.fullname" . }}-filebeat
160 - name: {{ include "common.fullname" . }}-log-conf
162 name: {{ include "common.fullname" . }}-log
163 - name: {{ include "common.fullname" . }}-localhost-access-log-conf
165 name: {{ include "common.fullname" . }}-localhost-access-log-configmap
166 - name: {{ include "common.fullname" . }}-db-real-conf
168 name: {{ include "common.fullname" . }}-db-real-configmap
169 - name: {{ include "common.fullname" . }}-db-cached-conf
171 name: {{ include "common.fullname" . }}-db-cached-configmap
172 - name: {{ include "common.fullname" . }}-aaiconfig-conf
174 name: {{ include "common.fullname" . }}-aaiconfig-configmap
175 - name: {{ include "common.fullname" . }}-springapp-conf
177 name: {{ include "common.fullname" . }}-springapp-configmap
178 - name: {{ include "common.fullname" . }}-realm-conf
180 name: {{ include "common.fullname" . }}-realm-configmap
181 - name: {{ include "common.fullname" . }}-auth-truststore-sec
183 secretName: aai-auth-truststore-secret
185 {{ range $job := .Values.global.config.auth.files }}
189 restartPolicy: {{ .Values.restartPolicy }}
191 - name: "{{ include "common.namespace" . }}-docker-registry-key"