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>
16 lines
448 B
YAML
16 lines
448 B
YAML
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: {{ include "tod.fullname" . }}-frontend
|
|
labels:
|
|
{{- include "tod.componentLabels" (dict "context" . "component" "frontend") | nindent 4 }}
|
|
spec:
|
|
type: ClusterIP
|
|
ports:
|
|
- name: http
|
|
port: {{ .Values.frontend.service.port }}
|
|
targetPort: http
|
|
protocol: TCP
|
|
selector:
|
|
{{- include "tod.componentSelectorLabels" (dict "context" . "component" "frontend") | nindent 4 }}
|