How baiiraam/ml_project_task_2 works
This repository packages a small FastAPI service and automates its delivery: changes pushed to GitHub trigger a workflow that lints and builds the container, publishes it, deploys it to a Kind Kubernetes cluster with Helm, and tests its endpoints. The service exposes root and health responses; the Helm chart defines its deployment and ClusterIP service. Workflow details and deployment relationships below follow the README; the workflow and Helm source files were not sampled, so their internal wiring is not inferred beyond documented behavior.
Main entry points: ci.yml GitHub Actions · Dockerfile Image build · deployment.yaml Pod deployment · service.yaml ClusterIP service
Components 12
FastAPI service
- FastAPI app
src/app.py
CI/CD workflow
- GitHub Actions
.github/workflows/ci.yml - Dockerfile lint
.github/workflows/ci.yml - Image build
Dockerfile - Image publish
.github/workflows/ci.yml - Helm deploy
.github/workflows/ci.yml - Endpoint tests
.github/workflows/ci.yml
Kubernetes deployment
- Kind cluster
- Pod deployment
helm/templates/deployment.yaml - ClusterIP service
helm/templates/service.yaml
Other components
- Contributor
- Docker Hub
Connections 12
- Contributor → GitHub Actions: pushes changes
README.md - GitHub Actions → Dockerfile lint: runs
README.md - GitHub Actions → Image build: builds image
README.md - Image build → Image publish: produces image
README.md - Image publish → Docker Hub: publishes image
README.md - GitHub Actions → Helm deploy: runs
README.md - Helm deploy → Kind cluster: creates cluster
README.md - Helm deploy → Pod deployment: installs chart
README.md - Pod deployment → FastAPI app: runs
README.md - ClusterIP service → FastAPI app: routes traffic
README.md - GitHub Actions → Endpoint tests: runs
README.md - Endpoint tests → ClusterIP service: tests endpoints
README.md