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,41 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "xslt-playground.fullname" . }}-backend
labels:
{{- include "xslt-playground.labels" . | nindent 4 }}
spec:
replicas: {{ .Values.replicaCount.backend }}
selector:
matchLabels:
{{- include "xslt-playground.selectorLabels" . | nindent 6 }}
component: backend
template:
metadata:
labels:
{{- include "xslt-playground.selectorLabels" . | nindent 8 }}
component: backend
spec:
containers:
- name: backend
image: "{{ .Values.image.backend.repository }}:{{ .Values.image.backend.tag }}"
imagePullPolicy: {{ .Values.image.backend.pullPolicy }}
env:
- name: DATABASE_URL
value: {{ .Values.databaseUrl | quote }}
- name: GOOGLE_APPLICATION_CREDENTIALS
value: {{ printf "%s/%s" .Values.firebase.credentialsMountPath .Values.firebase.credentialsKey | quote }}
volumeMounts:
- name: firebase
mountPath: {{ .Values.firebase.credentialsMountPath }}
readOnly: true
ports:
- containerPort: {{ .Values.service.backend.port }}
volumes:
- name: firebase
secret:
secretName: {{ .Values.firebaseSecretName }}
items:
- key: {{ .Values.firebase.credentialsKey }}
path: {{ .Values.firebase.credentialsKey }}