Files
the-other-dude/infrastructure/helm/templates/frontend-deployment.yaml
Jason Staack c5175b0ea4 feat(helm): add frontend deployment and service templates
Simple nginx-based deployment serving the React SPA on port 80,
no runtime env or volumes required.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-17 18:45:49 -05:00

39 lines
1.2 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "tod.fullname" . }}-frontend
labels:
{{- include "tod.componentLabels" (dict "context" . "component" "frontend") | nindent 4 }}
spec:
replicas: {{ .Values.frontend.replicaCount }}
selector:
matchLabels:
{{- include "tod.componentSelectorLabels" (dict "context" . "component" "frontend") | nindent 6 }}
template:
metadata:
labels:
{{- include "tod.componentSelectorLabels" (dict "context" . "component" "frontend") | nindent 8 }}
spec:
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: 80
initialDelaySeconds: 5
periodSeconds: 10
readinessProbe:
httpGet:
path: /
port: 80
initialDelaySeconds: 3
periodSeconds: 5
resources:
{{- toYaml .Values.frontend.resources | nindent 12 }}