How josenetoo/fiap-dclt-aula03 works
This repository is a Docker/Kubernetes deployment lesson centered on a Todo API. The runtime workflow is a client request entering the Express server, where routes validate and process todo operations against in-memory state and return JSON; health and statistics endpoints expose service and deployment details. The documented infrastructure workflow builds and publishes a container image, then deploys it with Kustomize, including Blue/Green and Canary examples. Workflow and Kubernetes manifest contents were not sampled, so their detailed triggers and wiring are not inferred.
Main entry points: app.js Express API · docker-build.yml Docker build workflow · k8s-deploy.yml Kubernetes deploy workflow · server.js HTTP server
Components 15
Todo API
- HTTP server
app/src/server.js - Express API
app/src/app.js - In-memory todos
app/src/app.js
Image delivery
- Container image
Dockerfile - Docker build workflow
.github/workflows/docker-build.yml
Kubernetes deployment
- Kubernetes deploy workflow
.github/workflows/k8s-deploy.yml - Canary deploy workflow
.github/workflows/canary-deploy.yml - Base manifests
k8s/base - Production overlay
k8s/overlays/production - Blue-Green manifests
k8s/blue-green - Canary Istio manifests
k8s/canary-istio
Other components
- API client
- AWS ECR
- Kubernetes cluster
- Todo user
Connections 13
- Todo user → API client: sends requests
- API client → HTTP server: HTTP requests
- HTTP server → Express API: starts app
- Express API → In-memory todos: reads/writes
- Express API → API client: returns JSON
- Docker build workflow → Container image: builds image
- Docker build workflow → AWS ECR: publishes image
- Kubernetes deploy workflow → Base manifests: deploys manifests
- Base manifests → Production overlay: overlaid by
- Kubernetes deploy workflow → Kubernetes cluster: deploys to
- Canary deploy workflow → Canary Istio manifests: deploys manifests
- Canary Istio manifests → Kubernetes cluster: configures routing
- Blue-Green manifests → Kubernetes cluster: configures versions