- Rename Go module switchboard-core → armature (155+ files) - Rename Docker image → gobha/armature - Rename K8s resources, secrets, deployments - Rename Prometheus metrics switchboard_* → armature_* - Rename env vars SWITCHBOARD_ADMIN_* → ARMATURE_ADMIN_* - Rename DB names switchboard_core* → armature* - Update all frontend branding, notification templates, docs - Update CI scripts, e2e tests, Keycloak realm, nginx conf - Rename scripts/switchboard-ca.sh → scripts/armature-ca.sh - Rename k8s/switchboard.yaml → k8s/armature.yaml - Rename chart alerting/dashboard files - Fix: DockerHub push uses env: binding for secret injection - Helm chart updated (name, labels, template functions, dashboard, alerting) - Replace favicon/icon assets with Armature brand No functional changes. Pure mechanical rename + CI fix. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
27 lines
914 B
YAML
27 lines
914 B
YAML
# k8s/middleware-retry.yaml
|
|
# ============================================
|
|
# Armature Core - Traefik Retry Middleware
|
|
# ============================================
|
|
# Retries failed requests (502, connection reset) once before giving up.
|
|
# Applies to API + WebSocket paths via the Ingress annotation.
|
|
#
|
|
# Why: After a heavy provider model sync (100+ DB upserts), the Go
|
|
# process may briefly delay responses. Traefik sees a stale keepalive
|
|
# connection or a slow initial byte and returns 502. A single retry
|
|
# on a fresh connection resolves it transparently.
|
|
#
|
|
# This is applied per-environment (${DEPLOY_SUFFIX} ensures isolation).
|
|
# ============================================
|
|
apiVersion: traefik.io/v1alpha1
|
|
kind: Middleware
|
|
metadata:
|
|
name: armature-retry${DEPLOY_SUFFIX}
|
|
namespace: ${NAMESPACE}
|
|
labels:
|
|
app: armature
|
|
env: ${ENVIRONMENT}
|
|
spec:
|
|
retry:
|
|
attempts: 2
|
|
initialInterval: 100ms
|