Add new infra architecture 10

This commit is contained in:
Urtzi Alfaro
2026-01-20 10:39:40 +01:00
parent bc00bab061
commit 3b81b5f77e
22 changed files with 1054 additions and 65 deletions

View File

@@ -17,6 +17,7 @@ metadata:
# skaffold dev # Uses dev settings (local registry)
# skaffold dev -p debug # Dev with port forwarding
# skaffold run -p prod # Production build with Docker Hub
# skaffold run -p gitea # Gitea registry mode (internal cluster)
# BASE_REGISTRY=ghcr.io/myorg skaffold run -p prod # Production with custom registry
# =============================================================================
@@ -453,3 +454,168 @@ profiles:
kustomize:
paths:
- infrastructure/environments/prod/k8s-manifests
# ---------------------------------------------------------------------------
# GITEA PROFILE - Development with Gitea registry for base images
# Uses internal cluster service name for base image registry
# ---------------------------------------------------------------------------
# Usage:
# skaffold run -p gitea # Gitea registry mode
# skaffold dev -p gitea # Dev with Gitea registry
# ---------------------------------------------------------------------------
- name: gitea
build:
local:
push: true
tagPolicy:
envTemplate:
template: "gitea"
artifacts:
# Gateway - Gitea registry base images
- image: bakery/gateway
context: .
docker:
dockerfile: gateway/Dockerfile
buildArgs:
BASE_REGISTRY: gitea-http.gitea.svc.cluster.local:3000
PYTHON_IMAGE: "python:3.11-slim"
# Frontend
- image: bakery/dashboard
context: ./frontend
docker:
dockerfile: Dockerfile.kubernetes
# Microservices - Gitea registry base images
- image: bakery/auth-service
context: .
docker:
dockerfile: services/auth/Dockerfile
buildArgs:
BASE_REGISTRY: gitea-http.gitea.svc.cluster.local:3000
PYTHON_IMAGE: "python:3.11-slim"
- image: bakery/tenant-service
context: .
docker:
dockerfile: services/tenant/Dockerfile
buildArgs:
BASE_REGISTRY: gitea-http.gitea.svc.cluster.local:3000
PYTHON_IMAGE: "python:3.11-slim"
- image: bakery/training-service
context: .
docker:
dockerfile: services/training/Dockerfile
buildArgs:
BASE_REGISTRY: gitea-http.gitea.svc.cluster.local:3000
PYTHON_IMAGE: "python:3.11-slim"
- image: bakery/forecasting-service
context: .
docker:
dockerfile: services/forecasting/Dockerfile
buildArgs:
BASE_REGISTRY: gitea-http.gitea.svc.cluster.local:3000
PYTHON_IMAGE: "python:3.11-slim"
- image: bakery/sales-service
context: .
docker:
dockerfile: services/sales/Dockerfile
buildArgs:
BASE_REGISTRY: gitea-http.gitea.svc.cluster.local:3000
PYTHON_IMAGE: "python:3.11-slim"
- image: bakery/external-service
context: .
docker:
dockerfile: services/external/Dockerfile
buildArgs:
BASE_REGISTRY: gitea-http.gitea.svc.cluster.local:3000
PYTHON_IMAGE: "python:3.11-slim"
- image: bakery/notification-service
context: .
docker:
dockerfile: services/notification/Dockerfile
buildArgs:
BASE_REGISTRY: gitea-http.gitea.svc.cluster.local:3000
PYTHON_IMAGE: "python:3.11-slim"
- image: bakery/inventory-service
context: .
docker:
dockerfile: services/inventory/Dockerfile
buildArgs:
BASE_REGISTRY: gitea-http.gitea.svc.cluster.local:3000
PYTHON_IMAGE: "python:3.11-slim"
- image: bakery/recipes-service
context: .
docker:
dockerfile: services/recipes/Dockerfile
buildArgs:
BASE_REGISTRY: gitea-http.gitea.svc.cluster.local:3000
PYTHON_IMAGE: "python:3.11-slim"
- image: bakery/procurement-service
context: .
docker:
dockerfile: services/procurement/Dockerfile
buildArgs:
BASE_REGISTRY: gitea-http.gitea.svc.cluster.local:3000
PYTHON_IMAGE: "python:3.11-slim"
- image: bakery/distribution-service
context: .
docker:
dockerfile: services/distribution/Dockerfile
buildArgs:
BASE_REGISTRY: gitea-http.gitea.svc.cluster.local:3000
PYTHON_IMAGE: "python:3.11-slim"
- image: bakery/production-service
context: .
docker:
dockerfile: services/production/Dockerfile
buildArgs:
BASE_REGISTRY: gitea-http.gitea.svc.cluster.local:3000
PYTHON_IMAGE: "python:3.11-slim"
- image: bakery/pos-service
context: .
docker:
dockerfile: services/pos/Dockerfile
buildArgs:
BASE_REGISTRY: gitea-http.gitea.svc.cluster.local:3000
PYTHON_IMAGE: "python:3.11-slim"
- image: bakery/orders-service
context: .
docker:
dockerfile: services/orders/Dockerfile
buildArgs:
BASE_REGISTRY: gitea-http.gitea.svc.cluster.local:3000
PYTHON_IMAGE: "python:3.11-slim"
- image: bakery/alert-processor
context: .
docker:
dockerfile: services/alert_processor/Dockerfile
buildArgs:
BASE_REGISTRY: gitea-http.gitea.svc.cluster.local:3000
PYTHON_IMAGE: "python:3.11-slim"
- image: bakery/demo-session-service
context: .
docker:
dockerfile: services/demo_session/Dockerfile
buildArgs:
BASE_REGISTRY: gitea-http.gitea.svc.cluster.local:3000
PYTHON_IMAGE: "python:3.11-slim"
deploy:
kustomize:
paths:
- infrastructure/environments/dev/k8s-manifests