4.3 KiB
title, generated_by, generated_at, human_edited, source_entity, source_repo
| title | generated_by | generated_at | human_edited | source_entity | source_repo |
|---|---|---|---|---|---|
| sonar-test-nest4 | documentor-agent | 2026-05-15T15:21:00+00:00 | false | Component/default/sonar-test-nest4 | https://gitea.kyndemo.live/validate/sonar-test-nest4 |
Overview
sonar-test-nest4 is a stateless microservice built using the typescript-nestjs runtime. It was scaffolded from the Create Microservice golden-path template on the Kyndryl Platform. The service provides a REST API for managing items, including endpoints for CRUD operations. It is designed to be lightweight, scalable, and observable, with integrated OpenTelemetry instrumentation and Prometheus metrics.
This service plays a key role in the broader system by offering item management capabilities. It is deployed on Azure Kubernetes Service (AKS) via Humanitec's Score-based deployment model, with container images stored in Azure Container Registry (ACR). The CI/CD pipeline is managed through Gitea Actions, ensuring automated builds, tests, and deployments across development, staging, and production environments.
Repository
| Field | Value |
|---|---|
| Source Repo | validate/sonar-test-nest4 |
| Branch | dev |
| ArgoCD App | — |
| Namespace | dev |
Architecture
sonar-test-nest4 follows a stateless architecture and is deployed as a containerized service. Key components include:
- Runtime:
typescript-nestjs - Container Port:
3000 - Endpoints:
/api/itemsfor CRUD operations/healthfor health checks/metricsfor Prometheus metrics
- Deployment Flow:
- Push to
dev,staging, orprodtriggers CI/CD workflows:build-push.yml: Builds and tests the application, then pushes the container image to Azure Container Registry.deploy-humanitec.yml: Deploys the service to AKS using Humanitec's API.
- Push to
- Branch Model:
dev: Active development, auto-deploys to the dev environment.staging: Pre-production, promoted fromdevvia PR.prod: Production, promoted fromstagingvia PR.main: System of record, receives merges fromprod.
Configuration
| Config Key | Value |
|---|---|
runtime |
typescript-nestjs |
health_path |
/health |
container_port |
3000 |
Operations
Deployment Steps
- Push changes to the
devbranch for automatic deployment to the dev environment. - Open a PR to promote changes from
devtostaging. Ensure CI tests pass and obtain one approval. - Open a PR to promote changes from
stagingtoprod. Ensure CI tests pass and obtain one approval. - Merge changes from
prodtomainfor system-of-record updates.
Runbook Notes
- Monitor
/healthfor service status. - Use
/metricsfor Prometheus-based observability. - For load testing, refer to the K6 configuration in the
devnamespace.
Observability
- Grafana Dashboard: Opentelemetry Application Observability
- Prometheus Metrics: Enabled at
/metricson port3000.
Dependencies
api:default/sonar-test-nest4-api