Skip to content

Commit

Permalink
added startup script to tagging workshop
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitchsplunk committed Apr 22, 2024
1 parent 1e6d7e9 commit d1e2861
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions workshop/tagging/0-deploy-collector-with-services.sh
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

0 comments on commit d1e2861

Please sign in to comment.