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 | # Copyright (c) 2017 Amdocs, Bell Canada |
| 3 | # Modifications Copyright (c) 2018 AT&T |
Sylvain Desbureaux | 5b65132 | 2020-12-07 15:34:15 +0100 | [diff] [blame] | 4 | # Modifications Copyright (c) 2020 Nokia, Orange |
Sylvain Desbureaux | 331f004 | 2021-01-18 11:38:49 +0100 | [diff] [blame] | 5 | # Modifications Copyright (c) 2021 Orange |
efiacor | d12c167 | 2023-03-23 12:10:50 +0000 | [diff] [blame] | 6 | # Modifications Copyright © 2023 Nordix Foundation |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 7 | # |
| 8 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 9 | # you may not use this file except in compliance with the License. |
| 10 | # You may obtain a copy of the License at |
| 11 | # |
| 12 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 13 | # |
| 14 | # Unless required by applicable law or agreed to in writing, software |
| 15 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 16 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 17 | # See the License for the specific language governing permissions and |
| 18 | # limitations under the License. |
Sylvain Desbureaux | 47eb4d2 | 2020-12-10 12:15:27 +0100 | [diff] [blame] | 19 | */}} |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 20 | |
| 21 | apiVersion: apps/v1 |
| 22 | kind: Deployment |
| 23 | metadata: |
| 24 | name: {{ include "common.fullname" . }} |
| 25 | namespace: {{ include "common.namespace" . }} |
| 26 | labels: |
| 27 | app: {{ include "common.name" . }} |
Andreas Geissler | ceac260 | 2023-07-17 18:55:54 +0200 | [diff] [blame] | 28 | app.kubernetes.io/name: {{ include "common.name" . }} |
| 29 | {{- if .Chart.AppVersion }} |
Andreas Geissler | 85a5a34 | 2023-07-19 14:05:20 +0200 | [diff] [blame] | 30 | version: "{{ .Chart.AppVersion | replace "+" "_" }}" |
Andreas Geissler | ceac260 | 2023-07-17 18:55:54 +0200 | [diff] [blame] | 31 | {{- else }} |
Andreas Geissler | 85a5a34 | 2023-07-19 14:05:20 +0200 | [diff] [blame] | 32 | version: "{{ .Chart.Version | replace "+" "_" }}" |
Andreas Geissler | ceac260 | 2023-07-17 18:55:54 +0200 | [diff] [blame] | 33 | {{- end }} |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 34 | chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} |
| 35 | release: {{ include "common.release" . }} |
| 36 | heritage: {{ .Release.Service }} |
| 37 | spec: |
| 38 | replicas: {{ .Values.replicaCount }} |
M.Hosnidokht | 15fea93 | 2021-08-25 09:08:40 -0400 | [diff] [blame] | 39 | minReadySeconds: {{ .Values.minReadySeconds }} |
| 40 | strategy: |
| 41 | type: {{ .Values.updateStrategy.type }} |
| 42 | rollingUpdate: |
| 43 | maxUnavailable: {{ .Values.updateStrategy.maxUnavailable }} |
| 44 | maxSurge: {{ .Values.updateStrategy.maxSurge }} |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 45 | selector: |
| 46 | matchLabels: |
| 47 | app: {{ include "common.name" . }} |
| 48 | template: |
| 49 | metadata: |
| 50 | labels: |
| 51 | app: {{ include "common.name" . }} |
| 52 | release: {{ include "common.release" . }} |
Andreas Geissler | ceac260 | 2023-07-17 18:55:54 +0200 | [diff] [blame] | 53 | app.kubernetes.io/name: {{ include "common.name" . }} |
| 54 | {{- if .Chart.AppVersion }} |
Andreas Geissler | 85a5a34 | 2023-07-19 14:05:20 +0200 | [diff] [blame] | 55 | version: "{{ .Chart.AppVersion | replace "+" "_" }}" |
Andreas Geissler | ceac260 | 2023-07-17 18:55:54 +0200 | [diff] [blame] | 56 | {{- else }} |
Andreas Geissler | 85a5a34 | 2023-07-19 14:05:20 +0200 | [diff] [blame] | 57 | version: "{{ .Chart.Version | replace "+" "_" }}" |
Andreas Geissler | ceac260 | 2023-07-17 18:55:54 +0200 | [diff] [blame] | 58 | {{- end }} |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 59 | name: {{ include "common.name" . }} |
| 60 | annotations: |
| 61 | checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }} |
Sylvain Desbureaux | 331f004 | 2021-01-18 11:38:49 +0100 | [diff] [blame] | 62 | {{- if .Values.global.msbEnabled }} |
| 63 | {{ $values := .Values }} |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 64 | msb.onap.org/service-info: '[ |
Sylvain Desbureaux | 331f004 | 2021-01-18 11:38:49 +0100 | [diff] [blame] | 65 | {{- range $api_endpoint := $values.aai_enpoints -}} |
| 66 | {{- range $api_version := $values.api_list }} |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 67 | { |
Sylvain Desbureaux | 331f004 | 2021-01-18 11:38:49 +0100 | [diff] [blame] | 68 | "serviceName": "_{{ $api_endpoint.name }}", |
| 69 | "version": "v{{ $api_version }}", |
| 70 | "url": "/aai/v{{ $api_version }}/{{ $api_endpoint.url }}", |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 71 | "protocol": "REST", |
| 72 | "port": "8446", |
| 73 | "enable_ssl": true, |
| 74 | "lb_policy":"ip_hash", |
| 75 | "visualRange": "1", |
Sylvain Desbureaux | 331f004 | 2021-01-18 11:38:49 +0100 | [diff] [blame] | 76 | "path": "/aai/v{{ $api_version }}/{{ $api_endpoint.url }}" |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 77 | }, |
| 78 | { |
Sylvain Desbureaux | 331f004 | 2021-01-18 11:38:49 +0100 | [diff] [blame] | 79 | "serviceName": "{{ $api_endpoint.name }}", |
| 80 | "version": "v{{ $api_version }}", |
| 81 | "url": "/aai/v{{ $api_version }}/{{ $api_endpoint.url }}", |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 82 | "protocol": "REST", |
| 83 | "port": "8446", |
| 84 | "enable_ssl": true, |
| 85 | "lb_policy":"ip_hash", |
Sylvain Desbureaux | 331f004 | 2021-01-18 11:38:49 +0100 | [diff] [blame] | 86 | "visualRange": "1" |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 87 | }, |
Sylvain Desbureaux | 331f004 | 2021-01-18 11:38:49 +0100 | [diff] [blame] | 88 | {{- end }} |
| 89 | {{- end }} |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 90 | { |
| 91 | "serviceName": "_aai-named-query", |
| 92 | "url": "/aai/search", |
| 93 | "protocol": "REST", |
| 94 | "port": "8446", |
| 95 | "enable_ssl": true, |
| 96 | "lb_policy":"ip_hash", |
| 97 | "visualRange": "1", |
| 98 | "path": "/aai/search" |
| 99 | }, |
| 100 | { |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 101 | "serviceName": "aai-named-query", |
| 102 | "url": "/aai/search", |
| 103 | "protocol": "REST", |
| 104 | "port": "8446", |
| 105 | "enable_ssl": true, |
| 106 | "lb_policy":"ip_hash", |
| 107 | "visualRange": "1" |
| 108 | } |
| 109 | ]' |
Sylvain Desbureaux | 331f004 | 2021-01-18 11:38:49 +0100 | [diff] [blame] | 110 | {{- end }} |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 111 | spec: |
| 112 | hostname: aai-traversal |
M.Hosnidokht | 15fea93 | 2021-08-25 09:08:40 -0400 | [diff] [blame] | 113 | terminationGracePeriodSeconds: {{ .Values.service.terminationGracePeriodSeconds }} |
efiacor | d12c167 | 2023-03-23 12:10:50 +0000 | [diff] [blame] | 114 | initContainers: |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 115 | - command: |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 116 | - /app/ready.py |
| 117 | args: |
Sylvain Desbureaux | a41dfc0 | 2021-02-15 10:14:22 +0100 | [diff] [blame] | 118 | {{- if .Values.global.jobs.migration.enabled }} |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 119 | - --job-name |
| 120 | - {{ include "common.release" . }}-aai-graphadmin-migration |
Sylvain Desbureaux | a41dfc0 | 2021-02-15 10:14:22 +0100 | [diff] [blame] | 121 | {{- else }} |
| 122 | {{- if .Values.global.jobs.createSchema.enabled }} |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 123 | - --job-name |
| 124 | - {{ include "common.release" . }}-aai-graphadmin-create-db-schema |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 125 | {{- else }} |
Andreas Geissler | cfd8434 | 2023-08-16 17:18:49 +0200 | [diff] [blame] | 126 | - --app-name |
Sylvain Desbureaux | a41dfc0 | 2021-02-15 10:14:22 +0100 | [diff] [blame] | 127 | {{- if .Values.global.cassandra.localCluster }} |
| 128 | - aai-cassandra |
| 129 | {{- else }} |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 130 | - cassandra |
Sylvain Desbureaux | a41dfc0 | 2021-02-15 10:14:22 +0100 | [diff] [blame] | 131 | {{- end }} |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 132 | - --container-name |
| 133 | - aai-schema-service |
Sylvain Desbureaux | a41dfc0 | 2021-02-15 10:14:22 +0100 | [diff] [blame] | 134 | {{- end }} |
| 135 | {{- end }} |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 136 | env: |
| 137 | - name: NAMESPACE |
| 138 | valueFrom: |
| 139 | fieldRef: |
| 140 | apiVersion: v1 |
| 141 | fieldPath: metadata.namespace |
Sylvain Desbureaux | 5b65132 | 2020-12-07 15:34:15 +0100 | [diff] [blame] | 142 | image: {{ include "repositoryGenerator.image.readiness" . }} |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 143 | imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }} |
| 144 | name: {{ include "common.name" . }}-readiness |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 145 | containers: |
| 146 | - name: {{ include "common.name" . }} |
Sylvain Desbureaux | 5b65132 | 2020-12-07 15:34:15 +0100 | [diff] [blame] | 147 | image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.image }} |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 148 | imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }} |
Sylvain Desbureaux | a41dfc0 | 2021-02-15 10:14:22 +0100 | [diff] [blame] | 149 | command: |
| 150 | - sh |
| 151 | args: |
| 152 | - -c |
| 153 | - | |
Sylvain Desbureaux | a41dfc0 | 2021-02-15 10:14:22 +0100 | [diff] [blame] | 154 | echo "*** actual launch of AAI Resources" |
| 155 | /bin/bash /opt/app/aai-traversal/docker-entrypoint.sh |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 156 | env: |
Andreas Geissler | 2ac422a | 2023-10-25 14:19:19 +0200 | [diff] [blame] | 157 | {{- if .Values.config.env }} |
| 158 | {{- range $key,$value := .Values.config.env }} |
| 159 | - name: {{ $key | upper | quote}} |
| 160 | value: {{ $value | quote}} |
| 161 | {{- end }} |
| 162 | {{- end }} |
Fiete Ostkamp | 21d4864 | 2024-01-16 08:33:59 +0100 | [diff] [blame] | 163 | {{- if .Values.config.profiling.enabled }} |
| 164 | - name: PRE_JVM_ARGS |
| 165 | value: '{{ join " " .Values.config.profiling.args }}' |
| 166 | {{- end }} |
| 167 | {{- if .Values.config.debug.enabled }} |
| 168 | - name: POST_JVM_ARGS |
| 169 | value: {{ .Values.config.debug.args | quote }} |
| 170 | {{- end }} |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 171 | - name: DISABLE_UPDATE_QUERY |
| 172 | value: {{ .Values.config.disableUpdateQuery | quote }} |
| 173 | - name: LOCAL_USER_ID |
| 174 | value: {{ .Values.global.config.userId | quote }} |
| 175 | - name: LOCAL_GROUP_ID |
| 176 | value: {{ .Values.global.config.groupId | quote }} |
M.Hosnidokht | 15fea93 | 2021-08-25 09:08:40 -0400 | [diff] [blame] | 177 | - name: INTERNAL_PORT_1 |
| 178 | value: {{ .Values.service.internalPort | quote }} |
| 179 | - name: INTERNAL_PORT_2 |
| 180 | value: {{ .Values.service.internalPort2 | quote }} |
leila | 46fb580 | 2022-11-15 11:33:21 -0500 | [diff] [blame] | 181 | - name: INTERNAL_PORT_3 |
| 182 | value: {{ .Values.service.internalPort3 | quote }} |
efiacor | d12c167 | 2023-03-23 12:10:50 +0000 | [diff] [blame] | 183 | volumeMounts: |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 184 | - mountPath: /etc/localtime |
| 185 | name: localtime |
| 186 | readOnly: true |
| 187 | - mountPath: /opt/app/aai-traversal/resources/etc/appprops/janusgraph-realtime.properties |
| 188 | name: {{ include "common.fullname" . }}-config |
| 189 | subPath: janusgraph-realtime.properties |
| 190 | - mountPath: /opt/app/aai-traversal/resources/etc/appprops/janusgraph-cached.properties |
| 191 | name: {{ include "common.fullname" . }}-config |
| 192 | subPath: janusgraph-cached.properties |
| 193 | - mountPath: /opt/app/aai-traversal/resources/etc/appprops/aaiconfig.properties |
| 194 | name: {{ include "common.fullname" . }}-config |
| 195 | subPath: aaiconfig.properties |
| 196 | - mountPath: /opt/aai/logroot/AAI-GQ |
Maciej Wereski | d523d12 | 2021-09-21 11:22:13 +0200 | [diff] [blame] | 197 | name: logs |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 198 | - mountPath: /opt/aai/logroot/AAI-GQ/misc |
| 199 | name: {{ include "common.fullname" . }}-logs-misc |
| 200 | - mountPath: /opt/app/aai-traversal/resources/logback.xml |
| 201 | name: {{ include "common.fullname" . }}-config |
| 202 | subPath: logback.xml |
| 203 | - mountPath: /opt/app/aai-traversal/resources/localhost-access-logback.xml |
| 204 | name: {{ include "common.fullname" . }}-config |
| 205 | subPath: localhost-access-logback.xml |
| 206 | - mountPath: /opt/app/aai-traversal/resources/etc/auth/realm.properties |
| 207 | name: {{ include "common.fullname" . }}-config |
| 208 | subPath: realm.properties |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 209 | - mountPath: /opt/app/aai-traversal/resources/application.properties |
| 210 | name: {{ include "common.fullname" . }}-config |
| 211 | subPath: application.properties |
Sam Huang | 56a6dd4 | 2021-03-26 13:27:17 -0600 | [diff] [blame] | 212 | - mountPath: /opt/app/aai-traversal/resources/application-keycloak.properties |
| 213 | name: {{ include "common.fullname" . }}-config |
| 214 | subPath: application-keycloak.properties |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 215 | ports: |
| 216 | - containerPort: {{ .Values.service.internalPort }} |
Andreas Geissler | ceac260 | 2023-07-17 18:55:54 +0200 | [diff] [blame] | 217 | name: {{ .Values.service.portName }} |
Fiete Ostkamp | 21d4864 | 2024-01-16 08:33:59 +0100 | [diff] [blame] | 218 | |
| 219 | {{- if .Values.config.debug.enabled }} |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 220 | - containerPort: {{ .Values.service.internalPort2 }} |
Andreas Geissler | ceac260 | 2023-07-17 18:55:54 +0200 | [diff] [blame] | 221 | name: {{ .Values.service.portName2 }} |
Fiete Ostkamp | 21d4864 | 2024-01-16 08:33:59 +0100 | [diff] [blame] | 222 | {{- end }} |
leila | 46fb580 | 2022-11-15 11:33:21 -0500 | [diff] [blame] | 223 | - containerPort: {{ .Values.service.internalPort3 }} |
Andreas Geissler | ceac260 | 2023-07-17 18:55:54 +0200 | [diff] [blame] | 224 | name: {{ .Values.service.portName3 }} |
Fiete Ostkamp | 21d4864 | 2024-01-16 08:33:59 +0100 | [diff] [blame] | 225 | {{- if .Values.config.profiling.enabled }} |
| 226 | - containerPort: {{ .Values.service.internalPort4 }} |
| 227 | name: {{ .Values.service.portName4 }} |
| 228 | {{- end }} |
| 229 | |
M.Hosnidokht | 15fea93 | 2021-08-25 09:08:40 -0400 | [diff] [blame] | 230 | lifecycle: |
| 231 | # wait for active requests (long-running tasks) to be finished |
| 232 | # Before the SIGTERM is invoked, Kubernetes exposes a preStop hook in the Pod. |
| 233 | preStop: |
| 234 | exec: |
| 235 | command: |
| 236 | - sh |
| 237 | - -c |
| 238 | - | |
| 239 | while (netstat -an | grep ESTABLISHED | grep -e $INTERNAL_PORT_1 -e $INTERNAL_PORT_2) |
| 240 | do sleep 10 |
| 241 | done |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 242 | # disable liveness probe when breakpoints set in debugger |
| 243 | # so K8s doesn't restart unresponsive container |
| 244 | {{ if .Values.liveness.enabled }} |
| 245 | livenessProbe: |
Fiete Ostkamp | c113ef3 | 2022-10-12 09:50:46 +0200 | [diff] [blame] | 246 | httpGet: |
| 247 | path: /aai/util/echo?action=checkDB |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 248 | port: {{ .Values.service.internalPort }} |
efiacor | d12c167 | 2023-03-23 12:10:50 +0000 | [diff] [blame] | 249 | scheme: HTTP |
Fiete Ostkamp | c113ef3 | 2022-10-12 09:50:46 +0200 | [diff] [blame] | 250 | httpHeaders: |
| 251 | - name: X-FromAppId |
| 252 | value: LivenessCheck |
| 253 | - name: X-TransactionId |
| 254 | value: LiveCheck_TID |
| 255 | - name: Accept |
| 256 | value: application/json |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 257 | initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }} |
| 258 | periodSeconds: {{ .Values.liveness.periodSeconds }} |
| 259 | {{ end }} |
| 260 | readinessProbe: |
Fiete Ostkamp | c113ef3 | 2022-10-12 09:50:46 +0200 | [diff] [blame] | 261 | httpGet: |
| 262 | path: /aai/util/echo?action=checkDB |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 263 | port: {{ .Values.service.internalPort }} |
efiacor | d12c167 | 2023-03-23 12:10:50 +0000 | [diff] [blame] | 264 | scheme: HTTP |
Fiete Ostkamp | c113ef3 | 2022-10-12 09:50:46 +0200 | [diff] [blame] | 265 | httpHeaders: |
| 266 | - name: X-FromAppId |
| 267 | value: ReadinessCheck |
| 268 | - name: X-TransactionId |
| 269 | value: ReadinessCheck_TID |
| 270 | - name: Accept |
| 271 | value: application/json |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 272 | initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }} |
| 273 | periodSeconds: {{ .Values.readiness.periodSeconds }} |
miroslavmasaryk | a7ac7f0 | 2023-03-01 14:12:26 +0100 | [diff] [blame] | 274 | resources: {{ include "common.resources" . | nindent 10 }} |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 275 | {{- if .Values.nodeSelector }} |
| 276 | nodeSelector: |
| 277 | {{ toYaml .Values.nodeSelector | indent 8 }} |
Sylvain Desbureaux | a41dfc0 | 2021-02-15 10:14:22 +0100 | [diff] [blame] | 278 | {{- end }} |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 279 | {{- if .Values.affinity }} |
| 280 | affinity: |
| 281 | {{ toYaml .Values.affinity | indent 8 }} |
| 282 | {{- end }} |
| 283 | |
| 284 | # side car containers |
Maciej Wereski | d523d12 | 2021-09-21 11:22:13 +0200 | [diff] [blame] | 285 | {{ include "common.log.sidecar" . | nindent 6 }} |
farida azmy | d893733 | 2021-03-09 12:20:42 +0200 | [diff] [blame] | 286 | serviceAccountName: {{ include "common.fullname" (dict "suffix" "read" "dot" . )}} |
efiacor | d12c167 | 2023-03-23 12:10:50 +0000 | [diff] [blame] | 287 | volumes: |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 288 | - name: localtime |
| 289 | hostPath: |
| 290 | path: /etc/localtime |
Maciej Wereski | d523d12 | 2021-09-21 11:22:13 +0200 | [diff] [blame] | 291 | - name: logs |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 292 | emptyDir: {} |
| 293 | - name: {{ include "common.fullname" . }}-logs-misc |
| 294 | emptyDir: {} |
Maciej Wereski | d523d12 | 2021-09-21 11:22:13 +0200 | [diff] [blame] | 295 | {{ include "common.log.volumes" (dict "dot" . "configMapNamePrefix" (tpl .Values.logConfigMapNamePrefix .)) | nindent 6 }} |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 296 | - name: {{ include "common.fullname" . }}-config |
| 297 | configMap: |
Sylvain Desbureaux | a41dfc0 | 2021-02-15 10:14:22 +0100 | [diff] [blame] | 298 | name: {{ include "common.fullname" . }} |
Sylvain Desbureaux | 7007041 | 2020-11-09 21:58:48 +0100 | [diff] [blame] | 299 | restartPolicy: {{ .Values.global.restartPolicy | default .Values.restartPolicy }} |
| 300 | imagePullSecrets: |
| 301 | - name: "{{ include "common.namespace" . }}-docker-registry-key" |