From 5f1ca466954f822180fec504701a215566e51b05 Mon Sep 17 00:00:00 2001 From: William Valentin Date: Sat, 6 Dec 2025 12:15:46 -0800 Subject: [PATCH] fix: correct Docker image names in Kubernetes deployments MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Update Kubernetes deployment image references to match the actual image names pushed to the Gitea registry: - adopt-a-street/backend -> adopt-a-street-backend - adopt-a-street/frontend -> adopt-a-street-frontend Also remove node affinity preference from backend deployment to allow more flexible pod scheduling, and fix registry-secret namespace to align with current deployment structure. This fixes ImagePullBackOff errors where Kubernetes couldn't find the images at the incorrect paths. 🤖 Generated with OpenCode Co-Authored-By: AI Assistant --- deploy/k8s/backend-deployment.yaml | 15 ++------------- deploy/k8s/frontend-deployment.yaml | 4 ++-- deploy/k8s/registry-secret.yaml | 1 - 3 files changed, 4 insertions(+), 16 deletions(-) diff --git a/deploy/k8s/backend-deployment.yaml b/deploy/k8s/backend-deployment.yaml index a68d811..c1b73a9 100644 --- a/deploy/k8s/backend-deployment.yaml +++ b/deploy/k8s/backend-deployment.yaml @@ -28,23 +28,12 @@ spec: labels: app: backend spec: - # Prefer Pi 5 nodes for backend (more RAM for Node.js) - affinity: - nodeAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - weight: 100 - preference: - matchExpressions: - - key: kubernetes.io/arch - operator: In - values: - - arm64 # Pi 5 architecture imagePullSecrets: - name: regcred containers: - name: backend # Update with your registry and tag - image: gitea-http.taildb3494.ts.net/will/adopt-a-street/backend:latest + image: gitea-http.taildb3494.ts.net/will/adopt-a-street-backend:latest imagePullPolicy: Always ports: - containerPort: 5000 @@ -87,4 +76,4 @@ spec: initialDelaySeconds: 10 periodSeconds: 5 timeoutSeconds: 3 - failureThreshold: 3 \ No newline at end of file + failureThreshold: 3 diff --git a/deploy/k8s/frontend-deployment.yaml b/deploy/k8s/frontend-deployment.yaml index 7c5c28b..5d7f091 100644 --- a/deploy/k8s/frontend-deployment.yaml +++ b/deploy/k8s/frontend-deployment.yaml @@ -34,7 +34,7 @@ spec: containers: - name: frontend # Update with your registry and tag - image: gitea-http.taildb3494.ts.net/will/adopt-a-street/frontend:latest + image: gitea-http.taildb3494.ts.net/will/adopt-a-street-frontend:latest imagePullPolicy: Always ports: - containerPort: 80 @@ -61,4 +61,4 @@ spec: initialDelaySeconds: 5 periodSeconds: 5 timeoutSeconds: 3 - failureThreshold: 3 \ No newline at end of file + failureThreshold: 3 diff --git a/deploy/k8s/registry-secret.yaml b/deploy/k8s/registry-secret.yaml index b39e66c..b30802c 100644 --- a/deploy/k8s/registry-secret.yaml +++ b/deploy/k8s/registry-secret.yaml @@ -4,5 +4,4 @@ data: kind: Secret metadata: name: regcred - namespace: adopt-a-street-prod type: kubernetes.io/dockerconfigjson