Test DJ App

This workshop has been deprecated and archived. The new Amazon EKS Workshop is now available at www.eksworkshop.com.

To test what we’ve just created, we will:

  • Exec into the dj pod
  • curl out to the jazz-v1 and metal-v1 backends

First we will exec into the dj pod

export DJ_POD_NAME=$(kubectl get pods -n prod -l app=dj -o jsonpath='{.items[].metadata.name}')

kubectl exec -n prod -it ${DJ_POD_NAME} bash

You will see a prompt from within the dj container.


Now from the dj container, we’ll issue a curl request to the jazz-v1 backend service:

curl -s jazz-v1:9080 | json_pp

Output should be similar to:

   "Astrud Gilberto",
   "Miles Davis"

Try it again, but issue the command to the metal-v1 backend:

curl -s metal-v1:9080 | json_pp

You should get a list of heavy metal bands back:

   "Judas Priest"

When you’re done exploring this vast world of music, hit CTRL-D, or type exit to quit the container’s shell.