arrow-left

All pages
gitbookPowered by GitBook
1 of 1

Loading...

Step 3: Create a Service

Creating a Kubernetes Service to run a Docker-containerized application

In this exercise, we will create a simple Google Cloud Nginx service. 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 3: 10 minutes.

hashtag
Prerequisites

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

  • An exist, both with the name that you chose.

  • The Infrastructure has .

  • A Tenant with the .

hashtag
Select the Tenant you created

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

hashtag
Adding a Service

  1. In the DuploCloud Portal, navigate to Kubernetes -> Services. The Services page displays.

  2. Click Add. The Add Service page displays.

  3. In the Service Name field, enter a name for the service (in the example below, the name is "myservice").

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

  2. At the bottom of the Advanced Options page, click Create. Your Service is created and initialized.

circle-info

It may take approximately five (5) minutes for the Service to initialize. Use the Containers page (Kubernetes -> Containers) to monitor the Service creation status, between Desired (Running) and Current.

hashtag
Checking your work

From the DuploCloud portal, navigate to Kubernetes -> Services, and verify that your DuploCloud Service has a Current status of Running.

In the Docker image field, enter the docker image (nginx:latest).

Infrastructure and Plan
GKE Enabled
name you chose has been created
The Kubernetes, Add Service page.
The Services page showing the running Service