Step 5: Create a Service

Creating a Service to run a Docker-containerized application

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

  • Native EKS

  • Native ECS Fargate

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

You don't need 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.

To deploy your own applications with DuploCloud, you’ll choose a public image or provide credentials for your private repository and configure your Docker Registry credentials in DuploCloud.

This tutorial will guide you through deploying a simple Hello World NodeJS web app using DuploCloud's built-in container orchestration with EKS. We’ll use a pre-built Docker container and access Docker images from a preconfigured Docker Hub.

Estimated time to complete Step 5: 10 minutes.

Prerequisites

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

Adding a Service

  1. In the Tenant list box, select the dev01 Tenant.

  2. In the DuploCloud Portal, navigate to Kubernetes -> Services.

  3. Click Add. The Add Service page displays.

  4. 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.

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

  6. At the bottom of the Advanced Options page, click Create. In about five (5) minutes, the Service will be created and initialized, displaying a status of Running in the Containers tab.

Add a Service page field
Value

Service Name

demo-service

Docker Image

duplocloud/nodejs-hello:latest

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

Using 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 status of Running.

  1. In the Tenant list box, select the dev01 Tenant.

  2. In the DuploCloud Portal, navigate to Kubernetes -> Services.

  3. Click on the Service name (demo-service).

  4. On the Containers tab, verify that the current status is Running.

Last updated

Logo

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