forked from open-telemetry/opentelemetry-demo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[dash0] chore: improve local k8s deployment
* remove deployment to two namespaces, we can resurrect that if we pick up https://linear.app/dash0/issue/ENG-951/make-the-deployment-topology-more-interesting again * rename namespace from otel-demo-ns to otel-demo * extract processing of values file into separate script * add support for sending data to a configurable ingress URL via OTEL_EXPORTER_OTLP_ENDPOINT * add support for using a custom values.yaml file via VALUES_YAML
- Loading branch information
Showing
12 changed files
with
52 additions
and
224 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1 @@ | ||
dash0-values.yaml | ||
ns1-values.yaml | ||
ns2-values.yaml | ||
dash0-otel-demo-local-k8s-values.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euo pipefail | ||
|
||
cd -P -- "$(dirname -- "$0")" | ||
|
||
source utils | ||
|
||
if [[ -n ${VALUES_YAML:-} ]]; then | ||
echo "Using custom values yaml file: $VALUES_YAML" | ||
cp $VALUES_YAML dash0-otel-demo-local-k8s-values.yaml | ||
else | ||
echo "Creating dash0-otel-demo-local-k8s-values.yaml based on:" | ||
echo "- $dash0_configuration_dir/demo/environments/aws/demo-eu-west-1-demo.yaml and" | ||
echo "- $dash0_configuration_dir/demo/values.yaml" | ||
echo "Set VALUES_YAML to use a custom values file." | ||
echo | ||
yq \ | ||
". *= load(\"$dash0_configuration_dir/demo/environments/aws/demo-eu-west-1-demo.yaml\")" \ | ||
$dash0_configuration_dir/demo/values.yaml | \ | ||
yq --from-file dash0-otel-demo-local-k8s.yq > \ | ||
dash0-otel-demo-local-k8s-values.yaml | ||
|
||
if [[ -n ${OTEL_EXPORTER_OTLP_ENDPOINT:-} ]]; then | ||
echo "Using non-default reporting endpoint from environment variable" | ||
echo "OTEL_EXPORTER_OTLP_ENDPOINT: $OTEL_EXPORTER_OTLP_ENDPOINT" | ||
echo | ||
yq -i ".opentelemetry-collector.config.exporters.otlp/dash0-dev.endpoint=\"$OTEL_EXPORTER_OTLP_ENDPOINT\" | del(.opentelemetry-collector.config.exporters.otlp/dash0-dev.auth) " dash0-otel-demo-local-k8s-values.yaml | ||
else | ||
echo "Reporting to $(yq '.opentelemetry-collector.config.exporters["otlp/dash0-dev"]'.endpoint dash0-otel-demo-local-k8s-values.yaml), set OTEL_EXPORTER_OTLP_ENDPOINT to report somewhere else." | ||
echo | ||
fi | ||
fi | ||
|
This file was deleted.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
kubernetes/local/dash0-one-ns.yq → ...rnetes/local/dash0-otel-demo-local-k8s.yq
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
.otelDemo.helm | | ||
.default.image.pullSecrets=[{"name": "regcred"}] | | ||
del(.opentelemetry-collector.config.exporters.otlp/dash0-prod) | | ||
del(.opentelemetry-collector.config.exporters.otlp/dash0-prod-pen-testing) | | ||
del(.opentelemetry-collector.config.service.pipelines.*.exporters.[] | select(. == "otlp/dash0-prod*") ) | | ||
.opentelemetry-collector.config.processors.resource.attributes[] |= select(.key == "cloud.account.id").value |= "012345678901" |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters