How qorgh529/test-orca works
This repository combines the Spring PetClinic application with its AWS EKS runtime architecture. The main user path is internet traffic through the protected AWS edge and Gateway API routing, then the NGINX web tier and Tomcat-hosted application, which accesses MySQL on RDS. Separate operational branches cover canary traffic control, scaling, secrets, backups, and observability. The README documents these relationships; source excerpts were unavailable, so application-internal calls are not inferred.
Main entry points: was Tomcat PetClinic · nginx.conf Nginx web tier · httproute-canary.yaml Canary HTTPRoute · otel-collector-values.yaml OTel Collector
Components 23
Traffic Entry
- DNS, TLS, WAF
- AWS ALB
- NGINX Gateway
k8s/gateway - Canary HTTPRoute
k8s/gateway/httproute-canary.yaml
PetClinic Runtime
- Nginx web tier
docker/web/nginx.conf - Static assets
app/src/main/webapp/resources - Tomcat PetClinic
k8s/was - PetClinic application
app/src/main/java/org/springframework/samples/petclinic
Deployment and Scaling
- Canary rollout control
scripts/set-canary-weight.sh - WAS autoscaling
k8s/was/keda-scaledobject.yaml - Web autoscaling
k8s/web/hpa.yaml
Data and Secrets
- RDS MySQL
- DB initialization
k8s/jobs/job-db-init.yaml - DB backup job
k8s/jobs/cronjob-db-backup.yaml - S3 backup storage
- Secrets Manager
- External Secrets
k8s/secrets
Observability
- Prometheus
k8s/monitoring/kube-prometheus-values.yaml - OTel Collector
k8s/tracing/otel-collector-values.yaml - Tempo traces
k8s/tracing/tempo-values.yaml - Grafana
k8s/monitoring/kube-prometheus-values.yaml - Tempo S3 storage
Other components
- Web user
Connections 23
- Web user → DNS, TLS, WAF: requests site
README.md - DNS, TLS, WAF → AWS ALB: protects and routes
README.md - AWS ALB → NGINX Gateway: forwards traffic
README.md - NGINX Gateway → Canary HTTPRoute: applies routes
README.md - Canary HTTPRoute → Nginx web tier: routes by weight
README.md - Nginx web tier → Static assets: serves assets
README.md - Nginx web tier → Tomcat PetClinic: proxies requests
README.md - Tomcat PetClinic → PetClinic application: hosts application
README.md - PetClinic application → RDS MySQL: reads and writes
README.md - Canary rollout control → Canary HTTPRoute: sets traffic weight
README.md - DB initialization → RDS MySQL: initializes schema
README.md - DB backup job → RDS MySQL: reads backup data
README.md - DB backup job → S3 backup storage: stores daily backup
README.md - Secrets Manager → External Secrets: provides credentials
README.md - External Secrets → Tomcat PetClinic: syncs app secret
README.md - Web autoscaling → Nginx web tier: scales replicas
README.md - WAS autoscaling → Tomcat PetClinic: scales replicas
README.md - Tomcat PetClinic → OTel Collector: exports OTLP
README.md - Tomcat PetClinic → Prometheus: exposes metrics
README.md - Prometheus → OTel Collector: scrapes metrics
README.md - OTel Collector → Tempo traces: exports traces
README.md - Grafana → Tempo traces: queries traces
README.md - Tempo traces → Tempo S3 storage: stores traces
README.md