Deploy Example Application

When trying out Steadybit you may want to start easy instead of directly using your fully fledged system. Therefore, we have a small example application called Shopping Demo which you can easily deploy on a local minikube or AWS EKS using this guide.

Simply follow these two steps:

Prerequisites

Step 1 - Have a look a the example application

In order to give you a quick and easy start, we have developed a small demo application. Our shopping demo is a small product catalog provided by seven distributed backend services and a simple UI.

shopping-demo-app

If you want to learn more about our demo, please take a look at our GitHub repository: https://github.com/steadybit/shopping-demo

Step 2 - Deploy the example application

The example application is already pre-configured to be deployed into a Kubernetes cluster. You can choose whether to deploy it into a) local minikube installation or b) AWS EKS.

Kubernetes, also known as k8s, is an open source system for automating the deployment, scaling, and management of containerized applications. You can use minikube to set up a local Kubernetes cluster on macOS, Linux or Windows. As an alternative choose AWS EKS to set up a Kubernetes cluster in the cloud.

Make sure to install the agents afterwards into the same environment.

Step 2a) Deploy on Minikube

Prerequisite

  • You have a running minikube installation

Start your minikube cluster

From a terminal, run:

You can access your cluster with:

Deploy the example application

Now we use helm to deploy the demo by running the following command:

Verify that all Shopping Demo pods are running:

You will see the following result, all pods are ready if you can see the status Running:

You can do a local port forward to your minikube to open the gateway service via your browser:

Visit http://127.0.01:8080/products in your browser to retrieve the aggregated list of all products or just use curl:

The result is an aggregated list of all products of the services toys, hot-deals and fashion:

Step 2b) Deploy on AWS EKS

Prerequisites

Create your AWS Elastic Kubernetes Service (AWS EKS) cluster and nodes

Verfiy your AWS CLI configuration by running:

Your output should be similiar to:

Create your Amazon EKS cluster and containing 2 nodes by running the following command. More details are available at AWS documentation

From a terminal, run:

You can access your cluster with:

Your output should be look like:

Deploy the Shopping Demo

Now we use kubectl to deploy the demo by running the following command:

Maybe you need to edit some ingress hosts names in your own values.yaml file.

Verify that all Shopping Demo pods are running:

You will see the following result, all pods are ready if you can see the status Running:

With the following command you can now determine the external IP and port to access the gateway service:

Example response:

Visit http://{EXTERNAL-IP}:{PORT}/products in your browser to retrieve the aggregated list of all products or just use curl:

The result is an aggregated list of all products of the services toys, hot-deals and fashion:

Next Steps

Now, make sure to install the agents into the same environment (minikube or AWS EKS).

Last updated

Was this helpful?