2 # Copyright © 2022 Deutsche Telekom
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
8 # http://www.apache.org/licenses/LICENSE-2.0
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
19 metadata: {{- include "common.resourceMetadata" . | nindent 2 }}
21 selector: {{- include "common.selectors" . | nindent 4 }}
22 replicas: {{ .Values.replicaCount }}
23 revisionHistoryLimit: {{ .Values.revisionHistoryLimit }}
27 checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
28 {{- include "common.templateMetadata" . | indent 6 }}
30 {{- include "common.imagePullSecrets" . | nindent 6 }}
31 {{ include "common.podSecurityContext" . | indent 6 | trim }}
33 - name: {{ .Chart.Name }}
34 image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.image.imageName }}:{{ .Values.image.tag | default .Chart.AppVersion }}
35 imagePullPolicy: {{ .Values.image.pullPolicy }}
36 {{ include "common.containerSecurityContext" . | indent 10 | trim }}
39 name: {{ include "common.fullname" . }}-configmap
40 ports: {{ include "common.containerPorts" . | nindent 12 }}
44 port: {{ .Values.service.internalPort}}
45 initialDelaySeconds: {{ .Values.probes.liveness.initialDelaySeconds }}
46 failureThreshold: {{ .Values.probes.liveness.failureThreshold }}
50 port: {{ .Values.service.internalPort}}
51 initialDelaySeconds: {{ .Values.probes.readiness.initialDelaySeconds }}
52 failureThreshold: {{ .Values.probes.readiness.failureThreshold }}
55 mountPath: {{ .Values.nginx.tilesIconsPath }}
58 mountPath: {{ .Values.nginx.tilesPath }}
62 mountPath: /etc/nginx/conf.d/default.conf
66 mountPath: /usr/share/nginx/html/assets/env.js
70 mountPath: /usr/share/nginx/html/assets/acl.json
74 mountPath: /usr/share/nginx/html/assets/version.json
79 - name: nginx-cache-volume
80 mountPath: /var/cache/nginx
81 resources: {{ include "common.resources" . | nindent 12 }}
82 {{- with .Values.nodeSelector }}
84 {{- toYaml . | nindent 10 }}
86 {{- with .Values.affinity }}
88 {{- toYaml . | nindent 10 }}
90 {{- with .Values.tolerations }}
92 {{- toYaml . | nindent 10 }}
97 name: {{ include "common.fullname" . }}-tiles-icons
100 name: {{ include "common.fullname" . }}-tiles-json
106 name: {{ include "common.fullname" . }}-nginx-config
109 name: {{ include "common.fullname" . }}-assets
120 - name: nginx-cache-volume