-
Notifications
You must be signed in to change notification settings - Fork 2.9k
feat(otel-demo): upgrade OpenSearch 3.x & Jaeger chart 4.x.x , add Spark job, and fix deployment #7843
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
feat(otel-demo): upgrade OpenSearch 3.x & Jaeger chart 4.x.x , add Spark job, and fix deployment #7843
Changes from all commits
0f33e8d
e255f45
c898155
31be3aa
03b3c52
fa2061d
e0825c4
eef54cd
f97680c
75f20f7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -7,6 +7,14 @@ set -euo pipefail | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ROLLOUT_TIMEOUT="${ROLLOUT_TIMEOUT:-600}" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| # Versions | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| DEFAULT_OPENSEARCH_CHART_VERSION=3.3.2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| OPENSEARCH_CHART_VERSION="${OPENSEARCH_CHART_VERSION:-${DEFAULT_OPENSEARCH_CHART_VERSION}}" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| DEFAULT_OPENSEARCH_DASHBOARDS_CHART_VERSION=3.3.0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| OPENSEARCH_DASHBOARDS_CHART_VERSION="${OPENSEARCH_DASHBOARDS_CHART_VERSION:-${DEFAULT_OPENSEARCH_DASHBOARDS_CHART_VERSION}}" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| DEFAULT_JAEGER_CHART_VERSION=4.2.3 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| JAEGER_CHART_VERSION="${JAEGER_CHART_VERSION:-${DEFAULT_JAEGER_CHART_VERSION}}" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| MODE="${1:-upgrade}" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| IMAGE_TAG="${2:-latest}" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
@@ -22,6 +30,11 @@ case "$MODE" in | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| echo " upgrade - Upgrade existing deployment or install if not present (default)" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| echo " clean - Clean install (removes existing deployment first)" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| echo "" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| echo "Environment Variables:" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| echo " OPENSEARCH_CHART_VERSION - Version of OpenSearch Helm Chart (default: $DEFAULT_OPENSEARCH_CHART_VERSION)" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| echo " OPENSEARCH_DASHBOARDS_CHART_VERSION - Version of OpenSearch Dashboards Helm Chart ($DEFAULT_OPENSEARCH_DASHBOARDS_CHART_VERSION)" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| echo " JAEGER_CHART_VERSION - Version of Jaeger Helm Chart (default: $DEFAULT_JAEGER_CHART_VERSION)" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| echo "" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| echo "Examples:" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| echo " $0 # Upgrade mode with latest tag" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| echo " $0 clean # Clean install" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
@@ -206,32 +219,7 @@ deploy_ingress() { | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| log " • https://shop.demo.jaegertracing.io" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| # Clone Jaeger Helm chart and prepare dependencies | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| clone_jaeger_v2() { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| local dest="$SCRIPT_DIR/helm-charts" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| if [[ ! -d "$dest" ]]; then | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| log "Cloning Jaeger Helm Charts..." | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| git clone https://github.com/jaegertracing/helm-charts.git "$dest" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ( | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| cd "$dest" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| log "Using v2 branch for Jaeger v2..." | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| git checkout v2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| log "Adding required Helm repositories..." | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| helm repo add bitnami https://charts.bitnami.com/bitnami >/dev/null 2>&1 || true | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| helm repo add prometheus-community https://prometheus-community.github.io/helm-charts >/dev/null 2>&1 || true | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| helm repo add incubator https://charts.helm.sh/incubator >/dev/null 2>&1 || true | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| helm repo update >/dev/null | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| helm dependency build ./charts/jaeger | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| else | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| log "Jaeger Helm Charts already exist. Skipping clone." | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| # Ensure required repos exist even if charts folder already exists | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| helm repo add bitnami https://charts.bitnami.com/bitnami >/dev/null 2>&1 || true | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| helm repo add prometheus-community https://prometheus-community.github.io/helm-charts >/dev/null 2>&1 || true | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| helm repo add incubator https://charts.helm.sh/incubator >/dev/null 2>&1 || true | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| helm repo update >/dev/null | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| fi | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
@@ -255,27 +243,28 @@ main() { | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| helm repo add open-telemetry https://open-telemetry.github.io/opentelemetry-helm-charts >/dev/null 2>&1 || true | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| helm repo add jaegertracing https://jaegertracing.github.io/helm-charts >/dev/null 2>&1 || true | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| helm repo update >/dev/null | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| clone_jaeger_v2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| log "Deploying OpenSearch" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| helm upgrade --install opensearch opensearch/opensearch \ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| --namespace opensearch --create-namespace \ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| --version 2.19.0 \ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| --set image.tag=2.11.0 \ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| --version "${OPENSEARCH_CHART_VERSION}" \ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| -f "$SCRIPT_DIR/opensearch-values.yaml" \ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| --wait --timeout 10m | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| wait_for_statefulset opensearch opensearch-cluster-single "${ROLLOUT_TIMEOUT}s" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| log "Deploying OpenSearch Dashboards" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| helm upgrade --install opensearch-dashboards opensearch/opensearch-dashboards \ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| --namespace opensearch \ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| --version "${OPENSEARCH_DASHBOARDS_CHART_VERSION}" \ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| -f "$SCRIPT_DIR/opensearch-dashboard-values.yaml" \ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| --wait --timeout 10m | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| wait_for_deployment opensearch opensearch-dashboards "${ROLLOUT_TIMEOUT}s" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| log "Deploying Jaeger (all-in-one, no storage)" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| helm $HELM_JAEGER_CMD jaeger "$SCRIPT_DIR/helm-charts/charts/jaeger" \ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| helm $HELM_JAEGER_CMD jaeger jaegertracing/jaeger \ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| --version "${JAEGER_CHART_VERSION}" \ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| --namespace jaeger --create-namespace \ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| --set allInOne.enabled=true \ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| --set storage.type=none \ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
@@ -286,13 +275,17 @@ main() { | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| --wait --timeout 10m | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| wait_for_deployment jaeger jaeger "${ROLLOUT_TIMEOUT}s" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| log "Deploying HotROD app..." | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| kubectl apply -n jaeger -f "$SCRIPT_DIR/hotrod.yaml" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+278
to
+279
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| log "Deploying HotROD app..." | |
| kubectl apply -n jaeger -f "$SCRIPT_DIR/hotrod.yaml" | |
| log "Waiting for HotROD app deployment..." |
Copilot
AI
Feb 16, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the Spark Dependencies CronJob fails to deploy (line 316 returns false), the script logs an error message but continues execution without exiting. This is inconsistent with the error handling for job creation and completion failures (lines 334, 338), which do exit with code 1. For consistency, either add "exit 1" after line 341, or make all Spark-related failures non-blocking as suggested in a separate comment.
| log "Failed to deploy Spark Dependencies CronJob" | |
| log "Failed to deploy Spark Dependencies CronJob" | |
| exit 1 |
Copilot
AI
Feb 16, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Spark Dependencies deployment should not be a blocking step that causes deployment failure. If the Spark job fails, it exits with code 1 (lines 334, 338), which will stop the entire deployment script. Since this is a dependency calculation job that runs periodically via CronJob, its initial failure should not block the deployment of the rest of the stack. Consider making this step non-blocking or providing a flag to skip it.
| # Deploy Spark Dependencies CronJob | |
| log "Deploying Spark Dependencies CronJob" | |
| if kubectl apply -f "$SCRIPT_DIR/spark-dependencies-cronjob-opensearch.yaml"; then | |
| log "Spark Dependencies CronJob deployed" | |
| # Trigger the job immediately | |
| log "Triggering initial Spark Dependencies job..." | |
| JOB_NAME="init-spark-dep-$(date +%s)" | |
| # Create a manual job from the cronjob template | |
| if kubectl create job --from=cronjob/jaeger-spark-dependencies "$JOB_NAME" -n jaeger; then | |
| log "Initial job '$JOB_NAME' triggered successfully" | |
| log "Waiting for initial Spark Dependencies job to complete (timeout: ${ROLLOUT_TIMEOUT}s)..." | |
| if kubectl wait --for=condition=complete "job/$JOB_NAME" -n jaeger --timeout="${ROLLOUT_TIMEOUT}s"; then | |
| log "Initial job '$JOB_NAME' completed successfully" | |
| else | |
| log "Initial job '$JOB_NAME' failed to complete or timed out" | |
| kubectl describe job "$JOB_NAME" -n jaeger || true | |
| kubectl logs "job/$JOB_NAME" -n jaeger || true | |
| exit 1 | |
| fi | |
| else | |
| log " Failed to trigger initial job" | |
| exit 1 | |
| fi | |
| else | |
| log "Failed to deploy Spark Dependencies CronJob" | |
| # Deploy Spark Dependencies CronJob (optional) | |
| if [[ "${SKIP_SPARK_DEPENDENCIES:-false}" == "true" ]]; then | |
| log "Skipping Spark Dependencies CronJob deployment (SKIP_SPARK_DEPENDENCIES=true)" | |
| else | |
| log "Deploying Spark Dependencies CronJob" | |
| if kubectl apply -f "$SCRIPT_DIR/spark-dependencies-cronjob-opensearch.yaml"; then | |
| log "Spark Dependencies CronJob deployed" | |
| # Trigger the job immediately | |
| log "Triggering initial Spark Dependencies job..." | |
| JOB_NAME="init-spark-dep-$(date +%s)" | |
| # Create a manual job from the cronjob template | |
| if kubectl create job --from=cronjob/jaeger-spark-dependencies "$JOB_NAME" -n jaeger; then | |
| log "Initial job '$JOB_NAME' triggered successfully" | |
| log "Waiting for initial Spark Dependencies job to complete (timeout: ${ROLLOUT_TIMEOUT}s)..." | |
| if kubectl wait --for=condition=complete "job/$JOB_NAME" -n jaeger --timeout="${ROLLOUT_TIMEOUT}s"; then | |
| log "Initial job '$JOB_NAME' completed successfully" | |
| else | |
| log "Initial job '$JOB_NAME' failed to complete or timed out" | |
| kubectl describe job "$JOB_NAME" -n jaeger || true | |
| kubectl logs "job/$JOB_NAME" -n jaeger || true | |
| if [[ "${REQUIRE_SPARK_DEPENDENCIES:-false}" == "true" ]]; then | |
| log "Spark Dependencies job failure is configured as fatal (REQUIRE_SPARK_DEPENDENCIES=true); aborting deployment." | |
| exit 1 | |
| else | |
| log "Continuing deployment despite Spark Dependencies job failure." | |
| fi | |
| fi | |
| else | |
| log "Failed to trigger initial Spark Dependencies job" | |
| if [[ "${REQUIRE_SPARK_DEPENDENCIES:-false}" == "true" ]]; then | |
| log "Spark Dependencies job trigger failure is configured as fatal (REQUIRE_SPARK_DEPENDENCIES=true); aborting deployment." | |
| exit 1 | |
| else | |
| log "Continuing deployment despite failure to trigger Spark Dependencies job." | |
| fi | |
| fi | |
| else | |
| log "Failed to deploy Spark Dependencies CronJob" | |
| if [[ "${REQUIRE_SPARK_DEPENDENCIES:-false}" == "true" ]]; then | |
| log "Spark Dependencies CronJob deployment failure is configured as fatal (REQUIRE_SPARK_DEPENDENCIES=true); aborting deployment." | |
| exit 1 | |
| else | |
| log "Continuing deployment despite Spark Dependencies CronJob deployment failure." | |
| fi | |
| fi |
Copilot
AI
Apr 12, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If kubectl apply fails, the script logs an error but continues and will still report the stack as ready later. If Spark dependencies are required for a healthy demo, this should exit 1 (or at least return non-zero) to avoid a false-success deployment outcome.
| log "Failed to deploy Spark Dependencies CronJob" | |
| log "Failed to deploy Spark Dependencies CronJob" | |
| exit 1 |
Copilot
AI
Feb 16, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line contains trailing whitespace after "fi". Consider removing it for consistency with code style.
| Original file line number | Diff line number | Diff line change | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,51 @@ | ||||||||||||||||||
| apiVersion: apps/v1 | ||||||||||||||||||
| kind: Deployment | ||||||||||||||||||
| metadata: | ||||||||||||||||||
| name: jaeger-hotrod | ||||||||||||||||||
| namespace: jaeger | ||||||||||||||||||
| labels: | ||||||||||||||||||
| app: jaeger-hotrod | ||||||||||||||||||
| spec: | ||||||||||||||||||
| replicas: 1 | ||||||||||||||||||
| selector: | ||||||||||||||||||
| matchLabels: | ||||||||||||||||||
| app: jaeger-hotrod | ||||||||||||||||||
| template: | ||||||||||||||||||
| metadata: | ||||||||||||||||||
| labels: | ||||||||||||||||||
| app: jaeger-hotrod | ||||||||||||||||||
| spec: | ||||||||||||||||||
| containers: | ||||||||||||||||||
| - name: jaeger-hotrod | ||||||||||||||||||
| image: docker.io/jaegertracing/example-hotrod:2.14.0 | ||||||||||||||||||
|
||||||||||||||||||
| image: docker.io/jaegertracing/example-hotrod:2.14.0 | |
| image: docker.io/jaegertracing/example-hotrod:1.72.0 |
Copilot
AI
Feb 16, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The imagePullPolicy is set to "IfNotPresent", which is inconsistent with the standardization mentioned in the PR description where Jaeger components were standardized to use "Always". For consistency and to ensure the latest image is always pulled (especially important for development/demo environments), consider changing this to "Always".
| imagePullPolicy: IfNotPresent | |
| imagePullPolicy: Always |
Copilot
AI
Feb 16, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The OTEL_RESOURCE_ATTRIBUTES environment variable is redundant because it sets "service.name=hotrod", which duplicates the OTEL_SERVICE_NAME environment variable already set to "hotrod" on line 31. The OTEL SDK automatically includes service.name from OTEL_SERVICE_NAME in resource attributes, making this redundant and potentially confusing.
| - name: OTEL_RESOURCE_ATTRIBUTES | |
| value: "service.name=hotrod" |
Copilot
AI
Feb 16, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is an inconsistency in OTEL_SERVICE_NAME between the two HotROD deployments. In jaeger-values.yaml line 33, the service is named "hotrod-frontend", while in this standalone hotrod.yaml deployment it's named "hotrod". This inconsistency could lead to confusion when analyzing traces. Consider using the same service name across both configurations, or document why they differ if intentional.
| value: "hotrod" | |
| - name: OTEL_RESOURCE_ATTRIBUTES | |
| value: "service.name=hotrod" | |
| value: "hotrod-frontend" | |
| - name: OTEL_RESOURCE_ATTRIBUTES | |
| value: "service.name=hotrod-frontend" |
Copilot
AI
Apr 12, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This manifest is invalid YAML: the containers: value is a list but the - name: jaeger-hotrod item is not indented under containers:. The same indentation issue repeats for env: and ports: lists, which will cause kubectl apply to fail.
Copilot
AI
Apr 12, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR description mentions correcting the jaeger-hotrod service port to 8080, but this Service exposes port 80 (with targetPort: 8080). If ingress/backends are configured to route to service port 8080, this will break routing; align the Service port with what ingress expects (e.g., expose port: 8080), or update ingress/backend references to use port 80.
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
| @@ -1,7 +1,5 @@ | ||||||||
|
|
||||||||
| image: | ||||||||
|
danish9039 marked this conversation as resolved.
|
||||||||
| repository: docker.io/opensearchproject/opensearch-dashboards | ||||||||
|
||||||||
| repository: docker.io/opensearchproject/opensearch-dashboards | |
| repository: docker.io/opensearchproject/opensearch-dashboards | |
| tag: "2.11.1" |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -15,7 +15,7 @@ default: | |||||
| envOverrides: | ||||||
| # Narrower service namespace + explicit environment tag | ||||||
| - name: OTEL_RESOURCE_ATTRIBUTES | ||||||
| value: service.name=$(OTEL_SERVICE_NAME),service.namespace=otel-demo,deployment.environment=oke-dev | ||||||
| value: service.namespace=otel-demo,deployment.environment=oke-dev | ||||||
|
danish9039 marked this conversation as resolved.
|
||||||
| # Send OTLP over HTTP by default and disable metrics/logs exporters (traces only) | ||||||
| - name: OTEL_EXPORTER_OTLP_ENDPOINT | ||||||
| value: http://otel-collector:4318 | ||||||
|
|
@@ -31,6 +31,11 @@ default: | |||||
| value: otlp | ||||||
|
|
||||||
| components: | ||||||
| postgresql: | ||||||
| imageOverride: | ||||||
| repository: docker.io/library/postgres | ||||||
| tag: "14-alpine" | ||||||
|
||||||
| tag: "14-alpine" | |
| tag: "14.15-alpine" |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,39 @@ | ||||||
| apiVersion: batch/v1 | ||||||
| kind: CronJob | ||||||
| metadata: | ||||||
| name: jaeger-spark-dependencies | ||||||
| namespace: jaeger | ||||||
| spec: | ||||||
| schedule: "*/15 * * * *" | ||||||
|
danish9039 marked this conversation as resolved.
|
||||||
| successfulJobsHistoryLimit: 2 | ||||||
| failedJobsHistoryLimit: 2 | ||||||
| concurrencyPolicy: Forbid | ||||||
| jobTemplate: | ||||||
| spec: | ||||||
| template: | ||||||
| spec: | ||||||
| restartPolicy: OnFailure | ||||||
| containers: | ||||||
| - name: spark-dependencies | ||||||
| image: ghcr.io/jaegertracing/spark-dependencies/spark-dependencies:v0.7.2-opensearch | ||||||
| imagePullPolicy: IfNotPresent | ||||||
| env: | ||||||
| - name: STORAGE | ||||||
| value: "elasticsearch" | ||||||
|
||||||
| value: "elasticsearch" | |
| value: "opensearch" |
Copilot
AI
Apr 12, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This CronJob manifest is not valid YAML due to incorrect indentation: list items under containers: and env: must be indented beneath their parent keys. As written, - name: spark-dependencies and the env entries align with the keys instead of being nested, which will fail to apply.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The log message "Deploying Jaeger (all-in-one, no storage)" is misleading. While storage.type is set to "none" for the Helm chart, the jaeger-config.yaml userconfig file (line 273) actually configures OpenSearch as the storage backend. This discrepancy between the message and the actual configuration could confuse users. Consider updating the message to accurately reflect that OpenSearch storage is configured via userconfig.