1
0
mirror of https://github.com/alexandrev/xslt-lab.git synced 2026-09-20 04:23:16 +00:00

Add Helm chart for Kubernetes deployment

This commit is contained in:
2025-07-02 16:20:34 +02:00
parent 78fb118c28
commit a1f81ee732
13 changed files with 339 additions and 0 deletions
@@ -0,0 +1,34 @@
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 }}
- name: VITE_FIREBASE_CONFIG
valueFrom:
secretKeyRef:
name: {{ .Values.firebaseSecretName }}
key: {{ .Values.firebase.configKey }}
ports:
- containerPort: {{ .Values.service.frontend.port }}
resources: {{- toYaml .Values.resources.frontend | nindent 12 }}