Deployment

Application

Deploy the application

10 minutes

In this step we will deploy the sample application (Pet Clinic).

Installation Steps

Step 1: Deploy the Application

To deploy the app:

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

You can check that your app is deployed, along with all the other pods:

bash
kubectl get pods

Step 2: Very the application is publicly accessible

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

Success

If you can see your application publicly you are good to move to the next step.
Last Modified ·