-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added startup script to tagging workshop
- Loading branch information
1 parent
1e6d7e9
commit d1e2861
Showing
1 changed file
with
19 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash | ||
|
||
if [ ! -f /home/splunk/.helmok ]; then | ||
helm repo add splunk-otel-collector-chart https://signalfx.github.io/splunk-otel-collector-chart | ||
helm repo update | ||
helm install splunk-otel-collector \ | ||
--set="splunkObservability.realm=$REALM" \ | ||
--set="splunkObservability.accessToken=$ACCESS_TOKEN" \ | ||
--set="clusterName=$INSTANCE-k3s-cluster" \ | ||
--set="environment=tagging-workshop-$INSTANCE" \ | ||
splunk-otel-collector-chart/splunk-otel-collector | ||
|
||
cd /home/splunk/workshop/tagging/ | ||
./2-deploy-creditcheckservice.sh | ||
./3-deploy-creditprocessorservice.sh | ||
./4-deploy-load-generator.sh | ||
|
||
echo $INSTANCE > /home/splunk/.helmok | ||
fi |