Skip to content
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

Update enableapm.sh #2

Merged
merged 1 commit into from
Sep 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion sb-hol/enableapm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,19 @@ echo "Waiting for the previous task to complete." && sleep 45
# Apply K8 OpenTelemetry Operator
kubectl apply -f https://github.com/open-telemetry/opentelemetry-operator/releases/download/v0.95.0/opentelemetry-operator.yaml

echo "Waiting for the previous task to complete." && sleep 30

# Configure APM agent using K8 operator
kubectl apply -f ~/oci-devlive-2024/sb-hol/customapmresource.yaml

echo "Waiting for the previous task to complete." && sleep 30

# Appyly APM java agent through the K8 namespace
kubectl apply -f ~/oci-devlive-2024/sb-hol/apmnamespace.yaml

echo "Waiting for the previous task to complete." && sleep 30

# To reflect the changes done at namespace - recreate the pods
kubectl delete pods --all
kubectl delete pods --all

echo "Waiting for the previous task to complete." && sleep 30