mirror of
https://gitlab.dit.htwk-leipzig.de/htwk-software/htwkalender.git
synced 2025-07-16 09:38:49 +02:00
49 lines
1.5 KiB
YAML
49 lines
1.5 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: {{ include "htwkalender.name" . }}-frontend
|
|
namespace: {{ .Release.Namespace }}
|
|
labels:
|
|
{{- include "htwkalender.labels" . | nindent 4 }}
|
|
component: frontend
|
|
{{- with .Values.annotations }}
|
|
annotations:
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
spec:
|
|
replicas: {{ .Values.frontend.replicas }}
|
|
selector:
|
|
matchLabels:
|
|
{{- include "htwkalender.selectorLabels" . | nindent 6 }}
|
|
template:
|
|
metadata:
|
|
{{- with .Values.annotations }}
|
|
annotations:
|
|
{{- toYaml . | nindent 8 }}
|
|
{{- end }}
|
|
labels:
|
|
{{- include "htwkalender.labels" . | nindent 8 }}
|
|
component: frontend
|
|
spec:
|
|
containers:
|
|
- name: {{ .Chart.Name }}-frontend
|
|
image: "{{ .Values.frontend.image.name }}"
|
|
imagePullPolicy: {{ .Values.frontend.image.pullPolicy }}
|
|
ports:
|
|
- name: frontend
|
|
containerPort: {{ .Values.frontend.service.targetPort }}
|
|
protocol: TCP
|
|
volumeMounts:
|
|
{{- if .Values.production }}
|
|
- name: configmap-google
|
|
mountPath: /{{ .Values.frontend.googleSiteVerification }}.html
|
|
subPath: {{ .Values.frontend.googleSiteVerification }}.html
|
|
readOnly: true
|
|
{{- end }}
|
|
{{- if .Values.production }}
|
|
volumes:
|
|
- name: configmap-google
|
|
configMap:
|
|
name: configmap-google
|
|
{{- end }}
|
|
|