Files
timetracker/timetracker-chart/templates/frontend-deployment.yaml
2026-02-18 19:21:49 +01:00

45 lines
1.4 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "timetracker.fullname" . }}-frontend
labels:
{{- include "timetracker.frontend.labels" . | nindent 4 }}
spec:
replicas: {{ .Values.frontend.replicaCount }}
selector:
matchLabels:
{{- include "timetracker.frontend.selectorLabels" . | nindent 6 }}
template:
metadata:
labels:
{{- include "timetracker.frontend.selectorLabels" . | nindent 8 }}
spec:
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
serviceAccountName: {{ include "timetracker.serviceAccountName" . }}
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
containers:
- name: frontend
image: "{{ .Values.frontend.image.repository }}:{{ .Values.frontend.image.tag }}"
imagePullPolicy: {{ .Values.frontend.image.pullPolicy }}
ports:
- name: http
containerPort: 80
protocol: TCP
livenessProbe:
httpGet:
path: /
port: http
initialDelaySeconds: 10
periodSeconds: 10
readinessProbe:
httpGet:
path: /
port: http
initialDelaySeconds: 5
periodSeconds: 5
resources:
{{- toYaml .Values.frontend.resources | nindent 12 }}