mirror of
https://github.com/alexandrev/xslt-lab.git
synced 2026-09-20 12:33:14 +00:00
37 lines
1.3 KiB
YAML
37 lines
1.3 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: {{ include "xslt-playground.fullname" . }}-frontend
|
|
labels:
|
|
{{- include "xslt-playground.labels" . | nindent 4 }}
|
|
spec:
|
|
replicas: {{ .Values.replicaCount.frontend }}
|
|
selector:
|
|
matchLabels:
|
|
{{- include "xslt-playground.selectorLabels" . | nindent 6 }}
|
|
component: frontend
|
|
template:
|
|
metadata:
|
|
labels:
|
|
{{- include "xslt-playground.selectorLabels" . | nindent 8 }}
|
|
component: frontend
|
|
spec:
|
|
containers:
|
|
- name: frontend
|
|
image: "{{ .Values.image.frontend.repository }}:{{ .Values.image.frontend.tag }}"
|
|
imagePullPolicy: {{ .Values.image.frontend.pullPolicy }}
|
|
env:
|
|
- name: VITE_BACKEND_URL
|
|
value: http://{{ include "xslt-playground.fullname" . }}-backend:{{ .Values.service.backend.port }}
|
|
{{- if .Values.firebase.enabled }}
|
|
- name: VITE_FIREBASE_CONFIG
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: {{ .Values.firebase.secretName }}
|
|
key: {{ .Values.firebase.configKey }}
|
|
{{- end }}
|
|
ports:
|
|
- containerPort: {{ .Values.service.frontend.port }}
|
|
resources: {{- toYaml .Values.resources.frontend | nindent 12 }}
|
|
|