- Add chart/ with backend, frontend, valkey deployments, services, and ingress - Update nginx.conf to use BACKEND_URL env var via envsubst - Update Dockerfile.frontend to use nginx template mechanism - Build.yml: switch Docker registry from Gitea to DOCR, add helm package+push step
31 lines
944 B
YAML
31 lines
944 B
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: {{ .Release.Name }}-frontend
|
|
namespace: {{ .Release.Namespace }}
|
|
labels:
|
|
{{- include "lunarfront.labels" . | nindent 4 }}
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: {{ .Release.Name }}-frontend
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: {{ .Release.Name }}-frontend
|
|
spec:
|
|
imagePullSecrets:
|
|
{{- toYaml .Values.imagePullSecrets | nindent 8 }}
|
|
containers:
|
|
- name: frontend
|
|
image: "{{ .Values.frontend.image.repository }}:{{ .Values.frontend.image.tag }}"
|
|
imagePullPolicy: {{ .Values.frontend.image.pullPolicy }}
|
|
ports:
|
|
- containerPort: {{ .Values.frontend.port }}
|
|
env:
|
|
- name: BACKEND_URL
|
|
value: "http://{{ .Release.Name }}-backend:{{ .Values.backend.port }}"
|
|
resources:
|
|
{{- toYaml .Values.frontend.resources | nindent 12 }}
|