Files
online-boutique/score.yaml
Scaffolder 7e119cad41 initial commit
Change-Id: I9c68c43e939d2c1a3b95a68b71ecc5ba861a4df5
2026-03-05 13:37:56 +00:00

46 lines
980 B
YAML

apiVersion: score.dev/v1b1
metadata:
name: online-boutique
labels:
app: online-boutique
backstage.io/kubernetes-id: online-boutique
# Humanitec propagates metadata.annotations to the pod template.
# This enables the kubernetes-pods Prometheus scraper to discover the service.
annotations:
prometheus.io/scrape: "true"
prometheus.io/path: /actuator/prometheus
prometheus.io/port: "8080"
service:
ports:
http:
port: 8080
targetPort: 8080
containers:
app:
image: .
variables:
SPRING_PROFILES_ACTIVE: development
resources:
requests:
memory: "512Mi"
cpu: "250m"
limits:
memory: "1Gi"
cpu: "500m"
# Optional: Define external resources that Humanitec should provision
# Uncomment and configure as needed
#
# resources:
# database:
# type: postgres
# properties:
# version: "15"
#
# redis:
# type: redis
# properties:
# version: "7"