feat: add service discovery, OTel instrumentation, and k6 load tests #1
15
overlays/otel/kustomization.yaml
Normal file
15
overlays/otel/kustomization.yaml
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
resources:
|
||||||
|
- ../deploy
|
||||||
|
patches:
|
||||||
|
- target:
|
||||||
|
kind: Deployment
|
||||||
|
name: reno-realworld-5
|
||||||
|
patch: "apiVersion: apps/v1\nkind: Deployment\nmetadata:\n name: reno-realworld-5\n\
|
||||||
|
spec:\n template:\n metadata:\n annotations:\n instrumentation.opentelemetry.io/inject-nodejs:\
|
||||||
|
\ monitoring/otel-instrumentation\n spec:\n containers:\n - name:\
|
||||||
|
\ reno-realworld-5\n env:\n - name: OTEL_SERVICE_NAME\n \
|
||||||
|
\ value: reno-realworld-5\n - name: OTEL_EXPORTER_OTLP_ENDPOINT\n \
|
||||||
|
\ value: http://otel-collector.monitoring.svc.cluster.local:4318\n \
|
||||||
|
\ - name: OTEL_RESOURCE_ATTRIBUTES\n value: app=reno-realworld-5\n"
|
||||||
Reference in New Issue
Block a user