- chore: ingest source code 108 files from https://github.com/spring-projects/spring-petclinic - feat: add platform deployment artifacts - feat: add CI/CD workflow automation
34 lines
981 B
YAML
34 lines
981 B
YAML
apiVersion: score.dev/v1b1
|
|
containers:
|
|
crucible-demo-02:
|
|
image: .
|
|
variables:
|
|
SPRING_DATASOURCE_PASSWORD: ${resources.db.password}
|
|
SPRING_DATASOURCE_URL: jdbc:postgresql://${resources.db.host}:${resources.db.port}/${resources.db.name}
|
|
SPRING_DATASOURCE_USERNAME: ${resources.db.username}
|
|
OTEL_SERVICE_NAME: crucible-demo-02
|
|
OTEL_EXPORTER_OTLP_ENDPOINT: http://otel-collector.monitoring.svc.cluster.local:4318
|
|
OTEL_RESOURCE_ATTRIBUTES: app=crucible-demo-02
|
|
metadata:
|
|
annotations:
|
|
prometheus.io/path: /actuator/prometheus
|
|
prometheus.io/port: '8080'
|
|
prometheus.io/scrape: 'true'
|
|
instrumentation.opentelemetry.io/inject-java: monitoring/otel-instrumentation
|
|
labels:
|
|
app: crucible-demo-02
|
|
backstage.io/kubernetes-id: crucible-demo-02
|
|
name: crucible-demo-02
|
|
resources:
|
|
db:
|
|
type: postgres
|
|
dns:
|
|
type: dns
|
|
env:
|
|
type: environment
|
|
service:
|
|
ports:
|
|
http:
|
|
port: 8080
|
|
targetPort: 8080
|