1 # Copyright © 2017-2018 AT&T
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
7 # http://www.apache.org/licenses/LICENSE-2.0
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
18 name: {{ include "common.fullname" . }}-update-query-data
19 namespace: {{ include "common.namespace" . }}
21 app: {{ include "common.name" . }}
22 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
23 release: {{ .Release.Name }}
24 heritage: {{ .Release.Service }}
29 app: {{ include "common.name" . }}-job
30 release: {{ .Release.Name }}
31 name: {{ include "common.name" . }}
44 fieldPath: metadata.namespace
45 image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
46 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
47 name: {{ include "common.name" . }}-readiness
49 - name: {{ include "common.name" . }}-job
50 image: "{{ .Values.global.repository | default .Values.repository }}/{{ .Values.image }}"
51 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
57 mkdir -p /opt/aai/logroot/AAI-GQ/misc
58 bash -x /opt/app/aai-traversal/docker-entrypoint.sh install/updateQueryData.sh
62 - name: LOCAL_GROUP_ID
65 - mountPath: /etc/localtime
68 - mountPath: /opt/app/aai-traversal/resources/etc/appprops/janusgraph-realtime.properties
69 name: {{ include "common.fullname" . }}-db-real-conf
70 subPath: janusgraph-realtime.properties
71 - mountPath: /opt/app/aai-traversal/resources/etc/appprops/janusgraph-cached.properties
72 name: {{ include "common.fullname" . }}-db-cached-conf
73 subPath: janusgraph-cached.properties
74 - mountPath: /opt/app/aai-traversal/resources/etc/appprops/aaiconfig.properties
75 name: {{ include "common.fullname" . }}-aaiconfig-conf
76 subPath: aaiconfig.properties
77 - mountPath: /var/log/onap
78 name: {{ include "common.fullname" . }}-logs
79 - mountPath: /opt/app/aai-traversal/resources/logback.xml
80 name: {{ include "common.fullname" . }}-log-conf
82 - mountPath: /opt/app/aai-traversal/resources/localhost-access-logback.xml
83 name: {{ include "common.fullname" . }}-localhost-access-log-conf
84 subPath: localhost-access-logback.xml
85 - mountPath: /opt/app/aai-traversal/resources/application.properties
86 name: {{ include "common.fullname" . }}-springapp-conf
87 subPath: application.properties
88 - mountPath: /opt/app/aai-traversal/resources/etc/auth/aai_keystore
89 name: {{ include "common.fullname" . }}-auth-sec
91 # disable liveness probe when breakpoints set in debugger
92 # so K8s doesn't restart unresponsive container
100 - name: {{ include "common.fullname" . }}-logs
102 path: {{ .Values.persistence.mountPath }}/{{ include "common.namespace" . }}/{{ .Values.persistence.mountSubPath }}-update-query
103 - name: {{ include "common.fullname" . }}-filebeat
105 - name: {{ include "common.fullname" . }}-log-conf
107 name: {{ include "common.fullname" . }}-log
108 - name: {{ include "common.fullname" . }}-localhost-access-log-conf
110 name: {{ include "common.fullname" . }}-localhost-access-log-configmap
111 - name: {{ include "common.fullname" . }}-db-real-conf
113 name: {{ include "common.fullname" . }}-db-real-configmap
114 - name: {{ include "common.fullname" . }}-db-cached-conf
116 name: {{ include "common.fullname" . }}-db-cached-configmap
117 - name: {{ include "common.fullname" . }}-aaiconfig-conf
119 name: {{ include "common.fullname" . }}-aaiconfig-configmap
120 - name: {{ include "common.fullname" . }}-springapp-conf
122 name: {{ include "common.fullname" . }}-springapp-configmap
123 - name: {{ include "common.fullname" . }}-realm-conf
125 name: {{ include "common.fullname" . }}-realm-configmap
126 - name: {{ include "common.fullname" . }}-auth-sec
128 secretName: {{ include "common.fullname" . }}-auth-secret
129 restartPolicy: OnFailure
131 - name: "{{ include "common.namespace" . }}-docker-registry-key"