RAILIANCE-WP-0012/0013/0014: Core Hub S5 release, CNPG observability, and follow-up workplans
All checks were successful
CI Smoke / host-smoke (push) Successful in 0s
CI Smoke / container-smoke (push) Successful in 5s

Deliver the inbox-suggestion implementation from WP-0012: Core Hub Helm chart
and Makefile targets, CNPG backup status tooling, and updated backup handoff
docs. Archive the finished WP-0012 workplan and register ready follow-ups
WP-0013 (CNPG backup wiring + restore drill) and WP-0014 (Core Hub Helm
cutover and vergabe-teilnahme image refresh).
This commit is contained in:
tegwick 2026-07-10 15:14:20 +02:00
parent 85f81714f1
commit df7225dd3e
19 changed files with 1025 additions and 2 deletions

View file

@ -0,0 +1,16 @@
apiVersion: v2
name: core-hub
description: |
Core Hub API deployment for Railiance01 (hub.coulomb.social).
type: application
version: 0.1.0
appVersion: "0.1.0"
keywords:
- core-hub
- hub
- railiance
home: https://forgejo.coulomb.social/coulomb/core-hub
sources:
- https://forgejo.coulomb.social/coulomb/core-hub
maintainers:
- name: railiance-apps

View file

@ -0,0 +1,33 @@
{{- define "corehub.fullname" -}}
{{- $name := default .Chart.Name .Values.nameOverride -}}
{{- printf "%s" $name | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{- define "corehub.labels" -}}
app.kubernetes.io/name: core-hub
app.kubernetes.io/component: api
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
app.kubernetes.io/part-of: railiance-apps
helm.sh/chart: {{ printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" }}
{{- with .Values.runtime.coreHubEnv }}
environment: {{ . }}
{{- end }}
{{- end -}}
{{- define "corehub.selectorLabels" -}}
app.kubernetes.io/name: core-hub
app.kubernetes.io/component: api
{{- end -}}
{{- define "corehub.image" -}}
{{- if not .Values.image.tag -}}
{{- fail "image.tag is required - pin it in helm/core-hub-values.yaml or pass --set image.tag=<sha>" -}}
{{- end -}}
{{- printf "%s:%s" .Values.image.repository .Values.image.tag -}}
{{- end -}}
{{- define "corehub.runtimeConfigMapName" -}}
{{- printf "%s-runtime" .Release.Name -}}
{{- end -}}

View file

@ -0,0 +1,8 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ include "corehub.runtimeConfigMapName" . }}
labels: {{- include "corehub.labels" . | nindent 4 }}
data:
CORE_HUB_ENV: {{ .Values.runtime.coreHubEnv | quote }}
CORE_HUB_AUTO_CREATE_TABLES: {{ .Values.runtime.autoCreateTables | quote }}

View file

@ -0,0 +1,59 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "corehub.fullname" . }}
labels: {{- include "corehub.labels" . | nindent 4 }}
spec:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels: {{- include "corehub.selectorLabels" . | nindent 6 }}
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 1
maxUnavailable: 0
template:
metadata:
labels: {{- include "corehub.labels" . | nindent 8 }}
spec:
securityContext: {{- toYaml .Values.podSecurityContext | nindent 8 }}
containers:
- name: api
image: {{ include "corehub.image" . | quote }}
imagePullPolicy: {{ .Values.image.pullPolicy }}
securityContext: {{- toYaml .Values.securityContext | nindent 12 }}
ports:
- name: http
containerPort: {{ .Values.service.targetPort }}
protocol: TCP
envFrom:
- configMapRef:
name: {{ include "corehub.runtimeConfigMapName" . }}
- secretRef:
name: {{ .Values.envSecretName | quote }}
readinessProbe:
httpGet:
path: {{ .Values.probes.readiness.path }}
port: http
initialDelaySeconds: {{ .Values.probes.readiness.initialDelaySeconds }}
periodSeconds: {{ .Values.probes.readiness.periodSeconds }}
timeoutSeconds: {{ .Values.probes.readiness.timeoutSeconds }}
failureThreshold: {{ .Values.probes.readiness.failureThreshold }}
livenessProbe:
httpGet:
path: {{ .Values.probes.liveness.path }}
port: http
initialDelaySeconds: {{ .Values.probes.liveness.initialDelaySeconds }}
periodSeconds: {{ .Values.probes.liveness.periodSeconds }}
timeoutSeconds: {{ .Values.probes.liveness.timeoutSeconds }}
failureThreshold: {{ .Values.probes.liveness.failureThreshold }}
resources: {{- toYaml .Values.resources | nindent 12 }}
{{- with .Values.nodeSelector }}
nodeSelector: {{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.affinity }}
affinity: {{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.tolerations }}
tolerations: {{- toYaml . | nindent 8 }}
{{- end }}

View file

@ -0,0 +1,28 @@
{{- if .Values.ingress.enabled }}
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: core-hub
labels: {{- include "corehub.labels" . | nindent 4 }}
annotations:
{{- toYaml .Values.ingress.annotations | nindent 4 }}
spec:
ingressClassName: {{ .Values.ingress.className }}
{{- if .Values.ingress.tls }}
tls:
- hosts:
- {{ .Values.ingress.host }}
secretName: core-hub-tls
{{- end }}
rules:
- host: {{ .Values.ingress.host }}
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: {{ include "corehub.fullname" . }}
port:
number: {{ .Values.service.port }}
{{- end }}

View file

@ -0,0 +1,35 @@
{{- if .Values.migration.enabled }}
apiVersion: batch/v1
kind: Job
metadata:
name: {{ .Values.migration.jobName }}
labels:
app.kubernetes.io/name: core-hub
app.kubernetes.io/component: migration
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
app.kubernetes.io/part-of: railiance-apps
{{- with .Values.runtime.coreHubEnv }}
environment: {{ . }}
{{- end }}
spec:
backoffLimit: {{ .Values.migration.backoffLimit }}
template:
metadata:
labels:
app.kubernetes.io/name: core-hub
app.kubernetes.io/component: migration
app.kubernetes.io/part-of: railiance-apps
spec:
restartPolicy: Never
containers:
- name: migrate
image: {{ include "corehub.image" . | quote }}
imagePullPolicy: {{ .Values.image.pullPolicy }}
command: ["alembic", "upgrade", "head"]
envFrom:
- configMapRef:
name: {{ include "corehub.runtimeConfigMapName" . }}
- secretRef:
name: {{ .Values.envSecretName | quote }}
{{- end }}

View file

@ -0,0 +1,13 @@
apiVersion: v1
kind: Service
metadata:
name: {{ include "corehub.fullname" . }}
labels: {{- include "corehub.labels" . | nindent 4 }}
spec:
type: {{ .Values.service.type }}
ports:
- name: http
port: {{ .Values.service.port }}
targetPort: http
protocol: TCP
selector: {{- include "corehub.selectorLabels" . | nindent 4 }}

View file

@ -0,0 +1,63 @@
nameOverride: core-hub-api
image:
repository: forgejo.coulomb.social/coulomb/core-hub
tag: ""
pullPolicy: IfNotPresent
replicaCount: 1
runtime:
coreHubEnv: production
autoCreateTables: "0"
envSecretName: core-hub-prod-env
service:
type: ClusterIP
port: 8010
targetPort: 8010
resources:
requests:
cpu: 250m
memory: 512Mi
limits:
cpu: 1000m
memory: 1Gi
probes:
liveness:
path: /healthz
initialDelaySeconds: 15
periodSeconds: 20
timeoutSeconds: 5
failureThreshold: 3
readiness:
path: /readyz
initialDelaySeconds: 5
periodSeconds: 10
timeoutSeconds: 5
failureThreshold: 3
migration:
enabled: false
jobName: core-hub-migrate
backoffLimit: 1
ingress:
enabled: true
className: traefik
host: hub.coulomb.social
tls: true
annotations:
traefik.ingress.kubernetes.io/router.entrypoints: websecure
traefik.ingress.kubernetes.io/router.tls: "true"
cert-manager.io/cluster-issuer: letsencrypt-prod
podSecurityContext: {}
securityContext: {}
nodeSelector: {}
tolerations: []
affinity: {}