Add Helm chart scaffold with Chart.yaml, values.yaml, helpers, and all templates

Adds full Helm chart for GroomBook including migration job (pre-install/pre-upgrade hook), CNPG cluster (operator mode), DragonflyDB (integrated + operator modes), API/web deployments, services, and ingress templates.

Resolves GRO-89.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit was merged in pull request #132.
This commit is contained in:
groombook-engineer[bot]
2026-03-27 18:36:28 +00:00
committed by GitHub
parent ce621a29b1
commit dcdc792875
19 changed files with 794 additions and 0 deletions
@@ -0,0 +1,70 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "groombook.fullname" . }}-api
labels:
{{- include "groombook.labels" . | nindent 4 }}
app.kubernetes.io/component: api
spec:
replicas: {{ .Values.api.replicas }}
selector:
matchLabels:
{{- include "groombook.selectorLabels" . | nindent 6 }}
app.kubernetes.io/component: api
template:
metadata:
labels:
{{- include "groombook.selectorLabels" . | nindent 8 }}
app.kubernetes.io/component: api
spec:
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
serviceAccountName: {{ include "groombook.serviceAccountName" . }}
containers:
- name: api
image: {{ include "groombook.apiImage" . }}
imagePullPolicy: {{ .Values.api.image.pullPolicy }}
ports:
- containerPort: 3000
name: http
protocol: TCP
env:
- name: PORT
value: {{ .Values.api.env.port | quote }}
- name: NODE_ENV
value: {{ .Values.api.env.nodeEnv | quote }}
- name: AUTH_DISABLED
value: {{ .Values.api.env.authDisabled | quote }}
{{- if .Values.api.env.corsOrigin }}
- name: CORS_ORIGIN
value: {{ .Values.api.env.corsOrigin | quote }}
{{- end }}
{{- if .Values.api.env.oidcIssuer }}
- name: OIDC_ISSUER
value: {{ .Values.api.env.oidcIssuer | quote }}
{{- end }}
{{- if .Values.api.env.oidcAudience }}
- name: OIDC_AUDIENCE
value: {{ .Values.api.env.oidcAudience | quote }}
{{- end }}
- name: DATABASE_URL
valueFrom:
secretKeyRef:
name: {{ include "groombook.databaseSecretName" . }}
key: {{ include "groombook.databaseSecretKey" . }}
resources:
{{- toYaml .Values.api.resources | nindent 12 }}
readinessProbe:
httpGet:
path: /health
port: 3000
initialDelaySeconds: 10
periodSeconds: 10
livenessProbe:
httpGet:
path: /health
port: 3000
initialDelaySeconds: 15
periodSeconds: 30