Live cluster had a Longhorn PVC `signalcontrol-data` mounted at /app/data since 2026-04-14, but the bluejay-infra git manifest never declared it. As a result, when ArgoCD recreated the Deployment from git (after deletion to fix an unrelated selector-label mismatch caught during cert-manager recovery), the new pod started without /app/data and crashed with `SQLite Error 14: unable to open database file 'data/signalcontrol.db'`. Bring git in line with reality: declare the PVC, mount it, and switch the Deployment to `strategy.type: Recreate` (RWO PVC blocks rolling updates per existing memory feedback_k8s_rwo_rollout.md). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
125 lines
2.7 KiB
YAML
125 lines
2.7 KiB
YAML
# FlowerCore SignalControl — Signal sequencing and relay coordination
|
|
---
|
|
apiVersion: v1
|
|
kind: Namespace
|
|
metadata:
|
|
name: fc-signalcontrol
|
|
labels:
|
|
app.kubernetes.io/part-of: bluejay-infra
|
|
---
|
|
apiVersion: v1
|
|
kind: PersistentVolumeClaim
|
|
metadata:
|
|
name: signalcontrol-data
|
|
namespace: fc-signalcontrol
|
|
labels:
|
|
app: signalcontrol-web
|
|
spec:
|
|
accessModes:
|
|
- ReadWriteOnce
|
|
storageClassName: longhorn
|
|
resources:
|
|
requests:
|
|
storage: 1Gi
|
|
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: signalcontrol-web
|
|
namespace: fc-signalcontrol
|
|
labels:
|
|
app: signalcontrol-web
|
|
spec:
|
|
replicas: 1
|
|
strategy:
|
|
type: Recreate
|
|
selector:
|
|
matchLabels:
|
|
app: signalcontrol-web
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: signalcontrol-web
|
|
spec:
|
|
containers:
|
|
- name: signalcontrol-web
|
|
image: localhost/fc-signalcontrol-web:v202604132015
|
|
imagePullPolicy: Never
|
|
ports:
|
|
- containerPort: 8080
|
|
name: http
|
|
env:
|
|
- name: ASPNETCORE_ENVIRONMENT
|
|
value: Production
|
|
- name: ASPNETCORE_URLS
|
|
value: "http://+:8080"
|
|
volumeMounts:
|
|
- name: data
|
|
mountPath: /app/data
|
|
resources:
|
|
requests:
|
|
memory: "128Mi"
|
|
cpu: "100m"
|
|
limits:
|
|
memory: "512Mi"
|
|
cpu: "500m"
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /metrics/prometheus
|
|
port: 8080
|
|
initialDelaySeconds: 10
|
|
periodSeconds: 30
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /metrics/prometheus
|
|
port: 8080
|
|
initialDelaySeconds: 5
|
|
periodSeconds: 10
|
|
volumes:
|
|
- name: data
|
|
persistentVolumeClaim:
|
|
claimName: signalcontrol-data
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: signalcontrol-web
|
|
namespace: fc-signalcontrol
|
|
spec:
|
|
selector:
|
|
app: signalcontrol-web
|
|
ports:
|
|
- port: 80
|
|
targetPort: 8080
|
|
name: http
|
|
---
|
|
apiVersion: cert-manager.io/v1
|
|
kind: Certificate
|
|
metadata:
|
|
name: signalcontrol-web-tls
|
|
namespace: fc-signalcontrol
|
|
spec:
|
|
secretName: signalcontrol-web-tls
|
|
issuerRef:
|
|
name: step-ca-acme
|
|
kind: ClusterIssuer
|
|
dnsNames:
|
|
- signalcontrol.iamworkin.lan
|
|
---
|
|
apiVersion: traefik.io/v1alpha1
|
|
kind: IngressRoute
|
|
metadata:
|
|
name: signalcontrol-web
|
|
namespace: fc-signalcontrol
|
|
spec:
|
|
entryPoints:
|
|
- websecure
|
|
routes:
|
|
- match: Host(`signalcontrol.iamworkin.lan`)
|
|
kind: Rule
|
|
services:
|
|
- name: signalcontrol-web
|
|
port: 80
|
|
tls:
|
|
secretName: signalcontrol-web-tls
|