3.6 KiB
title, generated_by, generated_at, human_edited, source_entity, source_repo
| title | generated_by | generated_at | human_edited | source_entity | source_repo |
|---|---|---|---|---|---|
| Petclinic Demo Jonathan Scaf 2 | documentor-agent | 2026-05-05T11:02:10+00:00 | false | Component/default/petclinic-demo-jonathan-scaf-2 | https://gitea.kyndemo.live/validate/petclinic-demo-jonathan-scaf-2 |
Petclinic Demo Jonathan Scaf 2
A deployment of the Spring PetClinic application, scaffolded via Backstage and managed with ArgoCD in the
demo-appsnamespace.
Overview
Petclinic Demo Jonathan Scaf 2 is a deployment of the Spring PetClinic application, a sample project showcasing Spring Boot capabilities. This service was scaffolded using the Backstage Application Migration Factory template, enabling automated CI/CD workflows and observability instrumentation. The application is deployed into the demo-apps namespace and continuously managed by ArgoCD.
The Spring PetClinic application provides a simple interface for managing veterinary clinic operations, including customer, pet, and visit records. It is built using Spring Boot and supports multiple database configurations, including H2, MySQL, and PostgreSQL. This deployment integrates OpenTelemetry for observability and supports load testing with k6 and chaos engineering with Chaos Mesh.
Repository
| Field | Value |
|---|---|
| Source Repo | Petclinic Demo Jonathan Scaf 2 |
| Branch | main |
| ArgoCD App | petclinic-demo-jonathan-scaf-2 |
| Namespace | demo-apps |
Architecture
- The service is based on the Spring PetClinic application, cloned from the upstream repository at
https://github.com/spring-projects/spring-petclinic. - OpenTelemetry auto-instrumentation is applied via Kustomize overlays, enabling comprehensive observability.
- ArgoCD manages the deployment, continuously syncing changes from the
mainbranch to thedemo-appsnamespace. - The deployment flow includes CI workflows, Backstage catalog entity creation, and integration with monitoring and load-testing tools.
Configuration
| Configuration | Description |
|---|---|
spring.profiles.active |
Specifies the active Spring profile (mysql, postgres, or default H2). |
| Database URLs | H2: jdbc:h2:mem:<uuid>; MySQL and PostgreSQL require external setup. |
| OpenTelemetry Endpoint | http://otel-collector.monitoring.svc.cluster.local:4318 |
Operations
Development Workflow
git clone https://gitea.kyndemo.live/validate/petclinic-demo-jonathan-scaf-2.git
cd petclinic-demo-jonathan-scaf-2
# make changes, then:
git add . && git commit -m "your change" && git push origin main
ArgoCD monitors the repository and automatically syncs changes to the demo-apps namespace.
Rollback
- Open the ArgoCD UI.
- Click History and Rollback.
- Select the desired revision and click Rollback.
Alternatively, revert the commit in Git and push — ArgoCD will auto-sync the rollback.
Observability
This service has OpenTelemetry auto-instrumentation enabled. Traces, metrics, and logs are exported to the OTel Collector and visualized in Grafana.
- Grafana Dashboard: OpenTelemetry Application Observability
- Filter by
app=petclinic-demo-jonathan-scaf-2to see service-specific data. - Alerts are configured via Grafana and can be monitored in Backstage.
Dependencies
component:default/argocd-serviceresource:default/k6-operatorresource:default/otel-collectorresource:default/veterinary-platform