Deploy the Instrumented App

Now that you’ve added Telemetry, you are ready to re-deploy.

Remove the uninstrumented app

Remove the first deployment:

kubectl delete deployment akka-cluster-orchestration-example-v0-1-0

Redeploy the application to minikube

Rebuild and redeploy the instrumented application:

eval $(minikube docker-env)
sbt docker:publishLocal
kubectl delete deployment akka-cluster-orchestration-example-v0-1-0
rp generate-kubernetes-resources "akka-cluster-orchestration-example:0.1.0" \
  --generate-pod-controllers --generate-services \
  --pod-controller-replicas 4 | kubectl apply -f -

Access Lightbend Console

Now, you should be able to see the four pod cluster in the Lightbend Console.

Console View of Tutorial Application

As a reminder, if you don’t have the console open, find the minikube IP:

$ minikube ip

Using the IP, view the Lightbend console at minikube-ip:30080. The default will be http://192.168.99.100:30080.

Completed tutorial

Congratulations, you enabled Telemetry for an Akka application!

For your reference, the finished tutorial is available on the tutorial-done branch:

git clone https://github.com/lightbend/akka-cluster-orchestration-example.git
cd akka-cluster-orchestration-example
git checkout tutorial-done

You can view the entire set of changes from the tutorial start point:

git diff origin/tutorial..origin/tutorial-done