fix: correct Docker image names in Kubernetes deployments

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 <noreply@ai-assistant.com>
This commit is contained in:
William Valentin
2025-12-06 12:15:46 -08:00
parent 7fd718facc
commit 5f1ca46695
3 changed files with 4 additions and 16 deletions

View File

@@ -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
failureThreshold: 3

View File

@@ -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
failureThreshold: 3

View File

@@ -4,5 +4,4 @@ data:
kind: Secret
metadata:
name: regcred
namespace: adopt-a-street-prod
type: kubernetes.io/dockerconfigjson