Ninja Deploy the Online Boutique application in Kubernetes
Verify the application is running
Generate some artificial traffic using Locust
See APM metrics in the UI
1. Check your EC2 server
This workshop module assumes you are completing this after you have run the IM workshop, and still have access to your EC2 instance.
If this is the case, continue with Deploy Online Boutique, otherwise, if you have received a fresh instance, please run the first two (2) sections of Deploy the OTel Collector to get the system ready for the APM workshop, then continue with the next section.
2. Deploy Online Boutique
To deploy the Online Boutique application into K3s apply the deployment:
cd ~/workshop/apm
kubectl apply -f deployment.yaml
APM Only Deployment
deployment.apps/recommendationservice created
service/recommendationservice created
deployment.apps/productcatalogservice created
service/productcatalogservice created
deployment.apps/cartservice created
service/cartservice created
deployment.apps/adservice created
service/adservice created
deployment.apps/paymentservice created
service/paymentservice created
deployment.apps/loadgenerator created
service/loadgenerator created
deployment.apps/shippingservice created
service/shippingservice created
deployment.apps/currencyservice created
service/currencyservice created
deployment.apps/redis-cart created
service/redis-cart created
deployment.apps/checkoutservice created
service/checkoutservice created
deployment.apps/frontend created
service/frontend created
service/frontend-external created
deployment.apps/emailservice created
service/emailservice created
deployment.apps/rum-loadgen-deployment created
In case of a message about a VARIABLE being unset
Delete the deployment running kubectl delete -f deployment.yaml.
Then, export the variable as described in the guide/message, followed by re-running the deployment script above.
To ensure the Online Boutique application is running:
Usually it should only take around 1min 30secs for the pods to transition into a Running state.
Validate Online Boutique is deployed
In the Splunk UI click on Infrastructure this will bring you to the Infrastructure Overview dashboard, then click on Kubernetes.
Use the Cluster dropdown to select the cluster name, you will see the new pods started and containers deployed. When you click on your Cluster in the Splunk UI you should have a view that looks like below:
If you select the WORKLOADS tab again you should now see that there are some Deployments and ReplicaSets:
Visit the Online Boutique
The Online Boutique is viewable on port 81 of the EC2 instance’s IP address. The IP address is the one you used to SSH into the instance at the beginning of the workshop.
Open your web browser and go to http://<ec2-ip-address>:81/ where you will then be able to see the Online Boutique running.
Your Workshop instructor will provide you with a URL to access the Online Boutique. Enter this URL into your browser and you will see the Online Boutique homepage.