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:
@@ -28,23 +28,12 @@ spec:
|
|||||||
labels:
|
labels:
|
||||||
app: backend
|
app: backend
|
||||||
spec:
|
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:
|
imagePullSecrets:
|
||||||
- name: regcred
|
- name: regcred
|
||||||
containers:
|
containers:
|
||||||
- name: backend
|
- name: backend
|
||||||
# Update with your registry and tag
|
# 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
|
imagePullPolicy: Always
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 5000
|
- containerPort: 5000
|
||||||
@@ -87,4 +76,4 @@ spec:
|
|||||||
initialDelaySeconds: 10
|
initialDelaySeconds: 10
|
||||||
periodSeconds: 5
|
periodSeconds: 5
|
||||||
timeoutSeconds: 3
|
timeoutSeconds: 3
|
||||||
failureThreshold: 3
|
failureThreshold: 3
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ spec:
|
|||||||
containers:
|
containers:
|
||||||
- name: frontend
|
- name: frontend
|
||||||
# Update with your registry and tag
|
# 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
|
imagePullPolicy: Always
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 80
|
- containerPort: 80
|
||||||
@@ -61,4 +61,4 @@ spec:
|
|||||||
initialDelaySeconds: 5
|
initialDelaySeconds: 5
|
||||||
periodSeconds: 5
|
periodSeconds: 5
|
||||||
timeoutSeconds: 3
|
timeoutSeconds: 3
|
||||||
failureThreshold: 3
|
failureThreshold: 3
|
||||||
|
|||||||
@@ -4,5 +4,4 @@ data:
|
|||||||
kind: Secret
|
kind: Secret
|
||||||
metadata:
|
metadata:
|
||||||
name: regcred
|
name: regcred
|
||||||
namespace: adopt-a-street-prod
|
|
||||||
type: kubernetes.io/dockerconfigjson
|
type: kubernetes.io/dockerconfigjson
|
||||||
|
|||||||
Reference in New Issue
Block a user