How vladimirvuletic002/diplomski works
This is a Kubernetes-hosted microservice demo for metric-driven canary releases and automated rollback. The user-facing workflow is dashboard/API request → gateway → aggregation → simulated meter readings, with version identity and consumption totals returned through the chain. Separate platform branches handle traffic weighting, Prometheus-based rollout analysis, GitOps delivery, and optional backup/restore. Service request and aggregation behavior is supported by sampled Go source; deployment and operations relationships are based on the README, so unsampled platform internals are represented at their manifest paths.
Main entry points: gateway/handlers.go Gateway API · values.yaml Prometheus · aggregation-service/handlers.go Aggregation API · aggregation-service.yaml Argo Rollouts
Components 20
User Experience
- Traefik Entry
k8s/base/gateway.yaml - Gateway API
services/gateway/handlers.go - Dashboard UI
services/gateway/main.go - Aggregation Client
services/gateway/client.go
Energy Services
- Aggregation API
services/aggregation-service/handlers.go - Meter Readings
services/metering-service/handlers.go - Metering Client
services/aggregation-service/client.go
Rollout Analysis
- Gateway Metrics
services/gateway/metrics.go - Aggregation Metrics
services/aggregation-service/metrics.go - Metering Metrics
services/metering-service/metrics.go - Prometheus
k8s/monitoring/values.yaml - Canary Analysis
k8s/base/analysis-template.yaml
Release Platform
- Argo Rollouts
k8s/base/aggregation-service.yaml - Argo CD Sync
k8s/argocd/application.yaml - Service Manifests
k8s/base - GitHub Actions
.github/workflows/release.yml - GHCR
Backup Recovery
- Velero Backup
k8s/velero/minio.yaml - MinIO Storage
k8s/velero/minio.yaml
Other components
- Dashboard User
Connections 22
- Dashboard User → Traefik Entry: requests
README.md - Traefik Entry → Gateway API: routes traffic
README.md - Gateway API → Dashboard UI: serves page
services/gateway/main.go - Dashboard User → Gateway API: requests summary
README.md - Gateway API → Aggregation Client: fetches summary
services/gateway/handlers.go - Aggregation Client → Aggregation API: requests aggregate
services/gateway/client.go - Aggregation API → Metering Client: fetches readings
services/aggregation-service/handlers.go - Metering Client → Meter Readings: requests readings
services/aggregation-service/client.go - Gateway API → Gateway Metrics: records requests
- Aggregation API → Aggregation Metrics: records requests
- Meter Readings → Metering Metrics: records requests
- Gateway Metrics → Prometheus: exposes metrics
README.md - Aggregation Metrics → Prometheus: exposes metrics
README.md - Metering Metrics → Prometheus: exposes metrics
README.md - Prometheus → Canary Analysis: supplies metrics
README.md - Canary Analysis → Argo Rollouts: judges canary
README.md - Argo Rollouts → Service Manifests: promotes or rolls back
README.md - GitHub Actions → GHCR: pushes images
README.md - GitHub Actions → Service Manifests: commits version bump
README.md - Argo CD Sync → Service Manifests: reconciles Git
README.md - GHCR → Argo Rollouts: provides release image
README.md - Velero Backup → MinIO Storage: stores backups
README.md