Preparation of the Workshop instance

Deploy the PetClinic Application

2 min

The first deployment of our application will be using prebuilt containers to give this base scenario: a regular Java microservices-based application running in Kubernetes that we want to start observing. So let’s deploy the application:

bash
kubectl apply -f ~/workshop/petclinic/deployment.yaml

At this point, we can verify the deployment by checking that the Pods are running. The containers need to be downloaded and started, so this may take a couple of minutes.

bash
kubectl get pods

Make sure the output of kubectl get pods matches the output as shown in the above Output tab. Ensure all the services are shown as Running (or use k9s to continuously monitor the status).

To test the application, you need to obtain the public IP address of your instance. You can do this by running the following command:

bash
curl http://ifconfig.me

Validate if the application is running by visiting http://<IP_ADDRESS>:81 (replace <IP_ADDRESS> with the IP address you obtained above). You should see the PetClinic application running. The application is also running on ports 80 & 443 if you prefer to use those or port 81 is unreachable.

Pet shop

Make sure the application is working correctly by visiting the All Owners (1) and Veterinarians (2) tabs, confirming that you see a list of names on each page.

Owners