Skip to content

Commit

Permalink
telemetrygen add deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
ryantanjunming committed Oct 25, 2024
1 parent 88107b9 commit 0213589
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/otel-integration-e2e-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ jobs:
--set global.domain="coralogix.com" \
-f ./values.yaml \
-f ./e2e-test/testdata/values-e2e-test.yaml
- name: Setup Telemetrygen
run: |
kubectl apply -f ./otel-integration/k8s-helm/e2e-test/testdata/telemetrygen.yaml
kubectl wait --for=condition=ready --timeout=300s pod -l component=telemetrygen
- name: Run E2E test
run: |
kubectl wait --for=condition=ready --timeout=300s pod -l component=agent-collector
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: telemetrygen-deployment
spec:
replicas: 1
selector:
matchLabels:
app: telemetrygen
template:
metadata:
labels:
app: telemetrygen
spec:
containers:
- name: telemetrygen
image: ghcr.io/open-telemetry/opentelemetry-collector-contrib/telemetrygen:latest
env:
- name: NODE
valueFrom:
fieldRef:
fieldPath: status.hostIP
- name: OTEL_EXPORTER_OTLP_ENDPOINT
value: "$(NODE):4317"
args:
- "traces"
- "--otlp-endpoint=172.18.0.2:4317" # Use environment variable to dynamically set endpoint
- "--otlp-insecure"
- "--rate=100" # Set the desired RPS
- "--duration=300s"

0 comments on commit 0213589

Please sign in to comment.