githubEdit

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 Demoarrow-up-right 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-demoarrow-up-right

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.

Kubernetesarrow-up-right, also known as k8s, is an open source system for automating the deployment, scaling, and management of containerized applications. You can use minikubearrow-up-right to set up a local Kubernetes cluster on macOS, Linux or Windows. As an alternative choose AWS EKSarrow-up-right 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

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 documentationarrow-up-right

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?