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:
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user