46 lines
980 B
YAML
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"
|