Files
adopt-a-street/deploy/k8s/image-pull-secret.yaml
William Valentin 758de862aa fix(k8s): migrate backend from Bun to Node.js and fix registry URLs
Backend Dockerfile changes:
- Replace Bun base image with node:20-alpine for production stability
- Change bun install to npm ci for dependency installation
- Update health check from Bun fetch to curl command
- Change CMD from 'bun server.js' to 'node server.js'

Deployment manifest changes:
- Update backend image URL to gitea-gitea-http.taildb3494.ts.net
- Update frontend image URL to gitea-gitea-http.taildb3494.ts.net
- Fix registry server reference in image-pull-secret.yaml comment

Rationale:
- Backend server.js is written for Node.js/Express, not Bun.serve()
- Bun was causing CrashLoopBackOff due to incompatible server API
- Node.js provides better stability for production Express apps
- Fixed registry URLs to match actual Gitea service name in cluster

🤖 Generated with OpenCode

Co-Authored-By: OpenCode <noreply@opencode.com>
2025-11-05 12:59:06 -08:00

20 lines
792 B
YAML

apiVersion: v1
kind: Secret
metadata:
name: regcred
type: kubernetes.io/dockerconfigjson
data:
.dockerconfigjson: eyJhdXRocyI6eyJnaXRlYS1odHRwLnRhaWxkYjM0OTQudHMubmV0Ijp7InVzZXJuYW1lIjoid2lsbCIsInBhc3N3b3JkIjoiW1lPVVJfR0lURUFfUEFTU1dPUkRdIiwiYXV0aCI6IltBVVRIX1RPS0VOXSJ9fX0=
---
# IMPORTANT:
# 1. Replace [YOUR_GITEA_PASSWORD] with your actual Gitea password
# 2. Update the base64 encoded .dockerconfigjson with your credentials
# 3. Apply with: kubectl apply -f image-pull-secret.yaml
# 4. To generate the proper config, run:
# kubectl create secret docker-registry regcred \
# --docker-server=gitea-gitea-http.taildb3494.ts.net \
# --docker-username=will \
# --docker-password=YOUR_GITEA_PASSWORD \
# --namespace=adopt-a-street \
# --dry-run=client -o yaml