Sylvain Desbureaux | 47eb4d2 | 2020-12-10 12:15:27 +0100 | [diff] [blame] | 1 | {{/* |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 2 | # |
| 3 | # ============LICENSE_START======================================================= |
| 4 | # org.onap.aai |
| 5 | # ================================================================================ |
| 6 | # Copyright (c) 2018 AT&T Intellectual Property. All rights reserved. |
| 7 | # Copyright (c) 2020 Nokia Intellectual Property. All rights reserved. |
Sylvain Desbureaux | c57b58d | 2021-02-23 18:07:34 +0100 | [diff] [blame] | 8 | # Copyright (c) 2020-2021 Orange Intellectual Property. All rights reserved. |
efiacor | d12c167 | 2023-03-23 12:10:50 +0000 | [diff] [blame] | 9 | # Modifications Copyright © 2023 Nordix Foundation |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 10 | # ================================================================================ |
| 11 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 12 | # you may not use this file except in compliance with the License. |
| 13 | # You may obtain a copy of the License at |
| 14 | # |
| 15 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 16 | # |
| 17 | # Unless required by applicable law or agreed to in writing, software |
| 18 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 19 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 20 | # See the License for the specific language governing permissions and |
| 21 | # limitations under the License. |
| 22 | # ============LICENSE_END========================================================= |
| 23 | |
| 24 | # In ONAP, the following job will always be run on each installation |
| 25 | # The following job will go through the latest oxm and |
| 26 | # create properties based on the data type defined in the oxm |
| 27 | # and create the required indexes for the appropriate properties |
| 28 | # This can be run multiple times as the code if the index or property already exists |
| 29 | # then the index or property won't be created again |
| 30 | # NOTE - During the execution of the createSchema job, there should |
| 31 | # be no other janusgraph connection to the graph as its the reason |
| 32 | # that resources traversal and graphadmin wait until this job is done |
| 33 | # If you are using an existing cassandra cluster not coming from oom |
| 34 | # then it is your job to ensure that there are no connections to the database |
Sylvain Desbureaux | 47eb4d2 | 2020-12-10 12:15:27 +0100 | [diff] [blame] | 35 | */}} |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 36 | |
| 37 | {{- if .Values.global.jobs.migration.enabled }} |
| 38 | --- |
| 39 | apiVersion: batch/v1 |
| 40 | kind: Job |
| 41 | metadata: |
| 42 | name: {{ include "common.fullname" . }}-migration |
| 43 | namespace: {{ include "common.namespace" . }} |
| 44 | labels: |
| 45 | app: {{ include "common.name" . }}-job |
| 46 | chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} |
| 47 | release: {{ include "common.release" . }} |
| 48 | heritage: {{ .Release.Service }} |
| 49 | annotations: |
| 50 | "helm.sh/hook": post-upgrade,post-rollback,post-install |
| 51 | "helm.sh/hook-weight": "1" |
| 52 | "helm.sh/hook-delete-policy": before-hook-creation |
| 53 | spec: |
| 54 | backoffLimit: 20 |
| 55 | template: |
| 56 | metadata: |
| 57 | labels: |
| 58 | app: {{ include "common.name" . }}-job |
| 59 | release: {{ include "common.release" . }} |
| 60 | name: {{ include "common.name" . }} |
| 61 | spec: |
efiacor | d12c167 | 2023-03-23 12:10:50 +0000 | [diff] [blame] | 62 | initContainers: |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 63 | - command: |
| 64 | - /app/ready.py |
| 65 | args: |
Andreas Geissler | cfd8434 | 2023-08-16 17:18:49 +0200 | [diff] [blame] | 66 | - --app-name |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 67 | {{- if .Values.global.cassandra.localCluster }} |
Andreas Geissler | b053025 | 2023-11-10 11:28:49 +0100 | [diff] [blame^] | 68 | - aai-cassandra |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 69 | {{- else }} |
Andreas Geissler | b053025 | 2023-11-10 11:28:49 +0100 | [diff] [blame^] | 70 | - cassandra |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 71 | {{- end }} |
| 72 | - --container-name |
| 73 | - aai-schema-service |
| 74 | env: |
| 75 | - name: NAMESPACE |
| 76 | valueFrom: |
| 77 | fieldRef: |
| 78 | apiVersion: v1 |
| 79 | fieldPath: metadata.namespace |
Sylvain Desbureaux | 5b65132 | 2020-12-07 15:34:15 +0100 | [diff] [blame] | 80 | image: {{ include "repositoryGenerator.image.readiness" . }} |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 81 | imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }} |
| 82 | name: {{ include "common.name" . }}-readiness |
| 83 | - command: |
Sylvain Desbureaux | c57b58d | 2021-02-23 18:07:34 +0100 | [diff] [blame] | 84 | - sh |
| 85 | args: |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 86 | - -c |
Sylvain Desbureaux | c57b58d | 2021-02-23 18:07:34 +0100 | [diff] [blame] | 87 | - | |
| 88 | bash docker-entrypoint.sh dataRestoreFromSnapshot.sh `ls -t /opt/app/aai-graphadmin/logs/data/dataSnapshots|head -1|awk -F".P" '{ print $1 }'` |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 89 | env: |
| 90 | - name: LOCAL_USER_ID |
Sylvain Desbureaux | c57b58d | 2021-02-23 18:07:34 +0100 | [diff] [blame] | 91 | value: {{ .Values.securityContext.user_id | quote }} |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 92 | - name: LOCAL_GROUP_ID |
Sylvain Desbureaux | c57b58d | 2021-02-23 18:07:34 +0100 | [diff] [blame] | 93 | value: {{ .Values.securityContext.group_id | quote }} |
efiacor | d12c167 | 2023-03-23 12:10:50 +0000 | [diff] [blame] | 94 | volumeMounts: |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 95 | - mountPath: /etc/localtime |
| 96 | name: localtime |
| 97 | readOnly: true |
| 98 | - mountPath: /opt/app/aai-graphadmin/resources/etc/appprops/janusgraph-realtime.properties |
Sylvain Desbureaux | c57b58d | 2021-02-23 18:07:34 +0100 | [diff] [blame] | 99 | name: config |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 100 | subPath: janusgraph-realtime.properties |
| 101 | - mountPath: /opt/app/aai-graphadmin/logs/data/dataSnapshots |
Sylvain Desbureaux | c57b58d | 2021-02-23 18:07:34 +0100 | [diff] [blame] | 102 | name: snapshots |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 103 | - mountPath: /opt/app/aai-graphadmin/resources/etc/appprops/janusgraph-cached.properties |
Sylvain Desbureaux | c57b58d | 2021-02-23 18:07:34 +0100 | [diff] [blame] | 104 | name: config |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 105 | subPath: janusgraph-cached.properties |
| 106 | - mountPath: /opt/app/aai-graphadmin/resources/etc/appprops/aaiconfig.properties |
Sylvain Desbureaux | c57b58d | 2021-02-23 18:07:34 +0100 | [diff] [blame] | 107 | name: properties |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 108 | subPath: aaiconfig.properties |
| 109 | - mountPath: /opt/aai/logroot/AAI-GA |
Sylvain Desbureaux | c57b58d | 2021-02-23 18:07:34 +0100 | [diff] [blame] | 110 | name: logs |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 111 | - mountPath: /opt/app/aai-graphadmin/resources/logback.xml |
Sylvain Desbureaux | c57b58d | 2021-02-23 18:07:34 +0100 | [diff] [blame] | 112 | name: config |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 113 | subPath: logback.xml |
| 114 | - mountPath: /opt/app/aai-graphadmin/resources/localhost-access-logback.xml |
Sylvain Desbureaux | c57b58d | 2021-02-23 18:07:34 +0100 | [diff] [blame] | 115 | name: config |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 116 | subPath: localhost-access-logback.xml |
| 117 | - mountPath: /opt/app/aai-graphadmin/resources/application.properties |
Sylvain Desbureaux | c57b58d | 2021-02-23 18:07:34 +0100 | [diff] [blame] | 118 | name: properties |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 119 | subPath: application.properties |
Sylvain Desbureaux | 5b65132 | 2020-12-07 15:34:15 +0100 | [diff] [blame] | 120 | image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.image }} |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 121 | imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }} |
| 122 | name: {{ include "common.name" . }}-restore-backup |
| 123 | containers: |
Sylvain Desbureaux | 5b65132 | 2020-12-07 15:34:15 +0100 | [diff] [blame] | 124 | - image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.image }} |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 125 | imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }} |
| 126 | name: {{ include "common.name" . }}-perform-migration |
| 127 | command: |
Sylvain Desbureaux | c57b58d | 2021-02-23 18:07:34 +0100 | [diff] [blame] | 128 | - sh |
| 129 | args: |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 130 | - -c |
osk11461 | 27fd7d8 | 2021-06-18 00:51:17 +0200 | [diff] [blame] | 131 | - | |
Andreas Geissler | 8624d22 | 2022-05-13 17:16:41 +0200 | [diff] [blame] | 132 | {{- if include "common.onServiceMesh" . }} |
| 133 | echo "waiting 15s for istio side cars to be up"; sleep 15s;{{- end }} |
osk11461 | 27fd7d8 | 2021-06-18 00:51:17 +0200 | [diff] [blame] | 134 | bash docker-entrypoint.sh run_Migrations.sh -e UpdateAaiUriIndexMigration --commit --skipPreMigrationSnapShot --runDisabled RebuildAllEdges ; |
othman touijer | 5117667 | 2021-12-01 16:21:18 +0100 | [diff] [blame] | 135 | {{ include "common.serviceMesh.killSidecar" . | indent 11 | trim }} |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 136 | env: |
| 137 | - name: LOCAL_USER_ID |
Sylvain Desbureaux | c57b58d | 2021-02-23 18:07:34 +0100 | [diff] [blame] | 138 | value: {{ .Values.securityContext.user_id | quote }} |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 139 | - name: LOCAL_GROUP_ID |
Sylvain Desbureaux | c57b58d | 2021-02-23 18:07:34 +0100 | [diff] [blame] | 140 | value: {{ .Values.securityContext.group_id | quote }} |
efiacor | d12c167 | 2023-03-23 12:10:50 +0000 | [diff] [blame] | 141 | volumeMounts: |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 142 | - mountPath: /etc/localtime |
| 143 | name: localtime |
| 144 | readOnly: true |
| 145 | - mountPath: /opt/app/aai-graphadmin/resources/etc/appprops/janusgraph-realtime.properties |
Sylvain Desbureaux | c57b58d | 2021-02-23 18:07:34 +0100 | [diff] [blame] | 146 | name: config |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 147 | subPath: janusgraph-realtime.properties |
| 148 | - mountPath: /opt/app/aai-graphadmin/resources/etc/appprops/janusgraph-cached.properties |
Sylvain Desbureaux | c57b58d | 2021-02-23 18:07:34 +0100 | [diff] [blame] | 149 | name: config |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 150 | subPath: janusgraph-cached.properties |
| 151 | - mountPath: /opt/app/aai-graphadmin/resources/etc/appprops/aaiconfig.properties |
Sylvain Desbureaux | c57b58d | 2021-02-23 18:07:34 +0100 | [diff] [blame] | 152 | name: properties |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 153 | subPath: aaiconfig.properties |
| 154 | - mountPath: /opt/aai/logroot/AAI-GA |
Sylvain Desbureaux | c57b58d | 2021-02-23 18:07:34 +0100 | [diff] [blame] | 155 | name: logs |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 156 | - mountPath: /opt/app/aai-graphadmin/resources/logback.xml |
Sylvain Desbureaux | c57b58d | 2021-02-23 18:07:34 +0100 | [diff] [blame] | 157 | name: config |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 158 | subPath: logback.xml |
| 159 | - mountPath: /opt/app/aai-graphadmin/resources/localhost-access-logback.xml |
Sylvain Desbureaux | c57b58d | 2021-02-23 18:07:34 +0100 | [diff] [blame] | 160 | name: config |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 161 | subPath: localhost-access-logback.xml |
| 162 | - mountPath: /opt/app/aai-graphadmin/resources/application.properties |
Sylvain Desbureaux | c57b58d | 2021-02-23 18:07:34 +0100 | [diff] [blame] | 163 | name: properties |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 164 | subPath: application.properties |
Sylvain Desbureaux | c57b58d | 2021-02-23 18:07:34 +0100 | [diff] [blame] | 165 | resources: {{ include "common.resources" . | nindent 10 }} |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 166 | {{- if .Values.nodeSelector }} |
Sylvain Desbureaux | c57b58d | 2021-02-23 18:07:34 +0100 | [diff] [blame] | 167 | nodeSelector: {{ toYaml .Values.nodeSelector | nindent 8 }} |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 168 | {{- end }} |
Sylvain Desbureaux | c57b58d | 2021-02-23 18:07:34 +0100 | [diff] [blame] | 169 | {{- if .Values.affinity }} |
| 170 | affinity: {{ toYaml .Values.affinity | nindent 8 }} |
| 171 | {{- end }} |
Andreas Geissler | ceac260 | 2023-07-17 18:55:54 +0200 | [diff] [blame] | 172 | serviceAccountName: {{ include "common.fullname" (dict "suffix" "read" "dot" . )}} |
efiacor | d12c167 | 2023-03-23 12:10:50 +0000 | [diff] [blame] | 173 | volumes: |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 174 | - name: localtime |
| 175 | hostPath: |
| 176 | path: /etc/localtime |
Maciej Wereski | d523d12 | 2021-09-21 11:22:13 +0200 | [diff] [blame] | 177 | {{ include "common.log.volumes" (dict "dot" . "configMapNamePrefix" (tpl .Values.logConfigMapNamePrefix .)) | nindent 8 }} |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 178 | - name: {{ include "common.fullname" . }}-logs |
| 179 | emptyDir: {} |
| 180 | - name: {{ include "common.fullname" . }}-config |
| 181 | configMap: |
Sylvain Desbureaux | 5b65132 | 2020-12-07 15:34:15 +0100 | [diff] [blame] | 182 | name: {{ include "common.fullname" . }}-configmap |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 183 | - name: {{ include "common.fullname" . }}-snapshots |
| 184 | persistentVolumeClaim: |
| 185 | claimName: {{ include "common.fullname" . }}-migration |
Sylvain Desbureaux | c57b58d | 2021-02-23 18:07:34 +0100 | [diff] [blame] | 186 | - name: properties |
othman touijer | 5117667 | 2021-12-01 16:21:18 +0100 | [diff] [blame] | 187 | configMap: |
| 188 | name: {{ include "common.fullname" . }}-properties |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 189 | restartPolicy: Never |
| 190 | imagePullSecrets: |
| 191 | - name: "{{ include "common.namespace" . }}-docker-registry-key" |
| 192 | --- |
| 193 | apiVersion: batch/v1 |
| 194 | kind: Job |
| 195 | metadata: |
| 196 | name: {{ include "common.fullname" . }}-db-backup-job |
| 197 | namespace: {{ include "common.namespace" . }} |
| 198 | labels: |
| 199 | app: {{ include "common.name" . }}-db-backup-job |
| 200 | release: {{ include "common.release" . }} |
| 201 | heritage: {{ .Release.Service }} |
| 202 | chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} |
| 203 | annotations: |
| 204 | "helm.sh/hook": pre-upgrade,pre-install |
| 205 | "helm.sh/hook-weight": "2" |
| 206 | "helm.sh/hook-delete-policy": before-hook-creation |
| 207 | spec: |
| 208 | backoffLimit: 20 |
| 209 | template: |
| 210 | metadata: |
| 211 | labels: |
| 212 | app: {{ include "common.name" . }}-db-backup-job |
| 213 | release: {{ include "common.release" . }} |
| 214 | name: {{ include "common.name" . }} |
| 215 | spec: |
efiacor | d12c167 | 2023-03-23 12:10:50 +0000 | [diff] [blame] | 216 | initContainers: |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 217 | {{ if eq .Values.global.jobs.migration.remoteCassandra.enabled false }} |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 218 | - command: |
| 219 | - /bin/bash |
| 220 | - -c |
Andreas Geissler | cfd8434 | 2023-08-16 17:18:49 +0200 | [diff] [blame] | 221 | - /app/ready.py --app-name aai-cassandra --timeout 1 || /app/ready.py --app-name cassandra |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 222 | env: |
| 223 | - name: NAMESPACE |
| 224 | valueFrom: |
| 225 | fieldRef: |
| 226 | apiVersion: v1 |
| 227 | fieldPath: metadata.namespace |
Sylvain Desbureaux | 5b65132 | 2020-12-07 15:34:15 +0100 | [diff] [blame] | 228 | image: {{ include "repositoryGenerator.image.readiness" . }} |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 229 | imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }} |
| 230 | name: {{ include "common.name" . }}-db-backup-readiness |
| 231 | {{- end }} |
| 232 | containers: |
| 233 | - name: {{ include "common.name" . }}-db-backup-job |
Sylvain Desbureaux | 5b65132 | 2020-12-07 15:34:15 +0100 | [diff] [blame] | 234 | image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.image }} |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 235 | imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }} |
| 236 | command: |
Sylvain Desbureaux | c57b58d | 2021-02-23 18:07:34 +0100 | [diff] [blame] | 237 | - sh |
| 238 | args: |
osk11461 | 27fd7d8 | 2021-06-18 00:51:17 +0200 | [diff] [blame] | 239 | - -c |
| 240 | - | |
Andreas Geissler | 8624d22 | 2022-05-13 17:16:41 +0200 | [diff] [blame] | 241 | {{- if include "common.onServiceMesh" . }} |
| 242 | echo "waiting 15s for istio side cars to be up"; sleep 15s;{{- end }} |
Sylvain Desbureaux | c57b58d | 2021-02-23 18:07:34 +0100 | [diff] [blame] | 243 | bash docker-entrypoint.sh dataSnapshot.sh |
othman touijer | 5117667 | 2021-12-01 16:21:18 +0100 | [diff] [blame] | 244 | {{ include "common.serviceMesh.killSidecar" . | indent 11 | trim }} |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 245 | env: |
| 246 | - name: LOCAL_USER_ID |
Sylvain Desbureaux | c57b58d | 2021-02-23 18:07:34 +0100 | [diff] [blame] | 247 | value: {{ .Values.securityContext.user_id | quote }} |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 248 | - name: LOCAL_GROUP_ID |
Sylvain Desbureaux | c57b58d | 2021-02-23 18:07:34 +0100 | [diff] [blame] | 249 | value: {{ .Values.securityContext.group_id | quote }} |
efiacor | d12c167 | 2023-03-23 12:10:50 +0000 | [diff] [blame] | 250 | volumeMounts: |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 251 | - mountPath: /etc/localtime |
| 252 | name: localtime |
| 253 | readOnly: true |
| 254 | - mountPath: /opt/app/aai-graphadmin/logs/data/dataSnapshots |
Sylvain Desbureaux | c57b58d | 2021-02-23 18:07:34 +0100 | [diff] [blame] | 255 | name: snapshots |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 256 | - mountPath: /opt/app/aai-graphadmin/resources/etc/appprops/janusgraph-realtime.properties |
Sylvain Desbureaux | c57b58d | 2021-02-23 18:07:34 +0100 | [diff] [blame] | 257 | name: migration |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 258 | subPath: janusgraph-migration-real.properties |
| 259 | - mountPath: /opt/app/aai-graphadmin/resources/etc/appprops/janusgraph-cached.properties |
Sylvain Desbureaux | c57b58d | 2021-02-23 18:07:34 +0100 | [diff] [blame] | 260 | name: migration |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 261 | subPath: janusgraph-migration-cached.properties |
| 262 | - mountPath: /opt/app/aai-graphadmin/resources/etc/appprops/aaiconfig.properties |
Sylvain Desbureaux | c57b58d | 2021-02-23 18:07:34 +0100 | [diff] [blame] | 263 | name: properties |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 264 | subPath: aaiconfig.properties |
| 265 | - mountPath: /opt/aai/logroot/AAI-RES/ |
Sylvain Desbureaux | c57b58d | 2021-02-23 18:07:34 +0100 | [diff] [blame] | 266 | name: logs |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 267 | - mountPath: /opt/app/aai-graphadmin/resources/logback.xml |
Sylvain Desbureaux | c57b58d | 2021-02-23 18:07:34 +0100 | [diff] [blame] | 268 | name: config |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 269 | subPath: logback.xml |
| 270 | - mountPath: /opt/app/aai-graphadmin/resources/localhost-access-logback.xml |
Sylvain Desbureaux | c57b58d | 2021-02-23 18:07:34 +0100 | [diff] [blame] | 271 | name: config |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 272 | subPath: localhost-access-logback.xml |
| 273 | - mountPath: /opt/app/aai-graphadmin/resources/application.properties |
Sylvain Desbureaux | c57b58d | 2021-02-23 18:07:34 +0100 | [diff] [blame] | 274 | name: properties |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 275 | subPath: application.properties |
Sylvain Desbureaux | c57b58d | 2021-02-23 18:07:34 +0100 | [diff] [blame] | 276 | resources: {{ include "common.resources" . | nindent 10 }} |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 277 | {{- if .Values.nodeSelector }} |
Sylvain Desbureaux | c57b58d | 2021-02-23 18:07:34 +0100 | [diff] [blame] | 278 | nodeSelector: {{ toYaml .Values.nodeSelector | nindent 8 }} |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 279 | {{- end }} |
Sylvain Desbureaux | c57b58d | 2021-02-23 18:07:34 +0100 | [diff] [blame] | 280 | {{- if .Values.affinity }} |
| 281 | affinity: {{ toYaml .Values.affinity | nindent 8 }} |
| 282 | {{- end }} |
Andreas Geissler | ceac260 | 2023-07-17 18:55:54 +0200 | [diff] [blame] | 283 | serviceAccountName: {{ include "common.fullname" (dict "suffix" "read" "dot" . )}} |
Sylvain Desbureaux | c57b58d | 2021-02-23 18:07:34 +0100 | [diff] [blame] | 284 | volumes: {{ include "common.resources" . | nindent 10 }} |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 285 | - name: localtime |
| 286 | hostPath: |
| 287 | path: /etc/localtime |
Sylvain Desbureaux | c57b58d | 2021-02-23 18:07:34 +0100 | [diff] [blame] | 288 | - name: logs |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 289 | emptyDir: {} |
Sylvain Desbureaux | c57b58d | 2021-02-23 18:07:34 +0100 | [diff] [blame] | 290 | - name: config |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 291 | configMap: |
Sylvain Desbureaux | c57b58d | 2021-02-23 18:07:34 +0100 | [diff] [blame] | 292 | name: {{ include "common.fullname" . }} |
| 293 | - name: properties-input |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 294 | configMap: |
Sylvain Desbureaux | c57b58d | 2021-02-23 18:07:34 +0100 | [diff] [blame] | 295 | name: {{ include "common.fullname" . }}-properties |
| 296 | - name: properties |
| 297 | emptyDir: |
| 298 | medium: Memory |
| 299 | - name: migration |
| 300 | configMap: |
| 301 | name: {{ include "common.fullname" . }}-migration |
| 302 | - name: snapshots |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 303 | persistentVolumeClaim: |
| 304 | claimName: {{ include "common.fullname" . }}-migration |
| 305 | restartPolicy: Never |
| 306 | imagePullSecrets: |
| 307 | - name: "{{ include "common.namespace" . }}-docker-registry-key" |
| 308 | {{ end }} |