initial commit
All checks were successful
Build and Publish TechDocs / build-and-publish (push) Successful in 1m15s

Change-Id: I13e9ed013a851dc8b933b024b0f88d03b6ecf6f8
This commit is contained in:
Scaffolder
2026-05-07 08:31:08 +00:00
commit f0523b8f90
16 changed files with 1398 additions and 0 deletions

44
score.yaml Normal file
View File

@@ -0,0 +1,44 @@
apiVersion: score.dev/v1b1
metadata:
name: sonar-test-go2
annotations:
instrumentation.opentelemetry.io/inject-go: monitoring/otel-instrumentation
prometheus.io/scrape: 'true'
prometheus.io/port: '80'
prometheus.io/path: /metrics
containers:
app:
image: .
variables:
OTEL_SERVICE_NAME: sonar-test-go2
OTEL_EXPORTER_OTLP_ENDPOINT: http://otel-collector.monitoring.svc.cluster.local:4318
OTEL_EXPORTER_OTLP_PROTOCOL: http/protobuf
OTEL_RESOURCE_ATTRIBUTES: app=sonar-test-go2
OTEL_METRICS_EXPORTER: otlp
OTEL_TRACES_EXPORTER: otlp
OTEL_LOGS_EXPORTER: none
livenessProbe:
httpGet:
path: /health
port: 8080
readinessProbe:
httpGet:
path: /health
port: 8080
resources:
limits:
memory: 128Mi
cpu: 200m
requests:
memory: 32Mi
cpu: 25m
service:
ports:
http:
port: 80
targetPort: 8080
resources:
env:
type: environment
dns:
type: dns