Step 5: Create a Service

Creating a Service to run a Docker-containerized application

DuploCloud supports three container orchestration technologies to deploy containerized applications in AWS:

  • Native EKS

  • Native ECS Fargate

  • Built-in container orchestration in DuploCloud using EKS/ECS Kubernetes

You can use any of these methods, which all employ Docker containers. This tutorial uses DuploCloud's built-in container orchestration using EKS and Kubernetes

You don't have to have experience with Kubernetes to deploy an application in the DuploCloud Portal. However, it is helpful to be familiar with the Docker platform. Docker runs on any platform and provides an easy-to-use UI for creating, running, and managing containers, in which your application code resides.

This tutorial will access a pre-built Docker container to deploy a simple Hello World NodeJS web app. When you run the application, DuploCloud accesses Docker images in a preconfigured Docker Hub.

When you run your own applications, you will choose a public image or provide credentials to access your private repository. Before you deploy your own applications, configure your Docker Registry credentials in DuploCloud.

Estimated time to complete Step 5: 10 minutes.

Prerequisites

Before creating a Service, verify that you accomplished the tasks in the previous tutorial steps. Using the DuploCloud Portal, confirm that:

Select the Tenant you created

In the Tenant list box, on the upper-left side of the DuploCloud Portal, select the dev01 Tenant that you created.

Adding a Service

  1. In the DuploCloud Portal, navigate to DevOps -> Containers -> EKS/Native. The Services page displays.

  2. Click Add. The Add Service page displays.

  3. From the table below, enter the values that correspond to the fields on the Add Service page. Accept all other default values for fields not specified.

  4. Click Next. The Advanced Options page is displayed.

  5. At the bottom of the Advanced Options page, click Create. Your Service is created and initialized. In about five (5) minutes, in the Containers tab, your DuploCloud Service displays a Current status of Running.

  1. From the table below, enter the values that correspond to the fields on the Add Service page. Accept all other default values for fields not specified.

  2. Click Next. The Advanced Options page is displayed.

  3. At the bottom of the Advanced Options page, click Create. Your Service is created and initialized. In about five (5) minutes, in the Containers tab, your DuploCloud Service displays a Current status of Running.

Use the Containers tab to monitor the Service creation status, between Desired (Running) and Current.

Deploying a Service on Spot Instances (optional)

Follow the steps in Creating Services using Autoscaling Groups. In the Add Service page, Basic Options, Select Tolerate spot instances.

Checking your work

Verify that your DuploCloud Service, demo-service, has a Current status of Running.

Last updated

Logo

© DuploCloud, Inc. All rights reserved. DuploCloud trademarks used herein are registered trademarks of DuploCloud and affiliates