All pages
Powered by GitBook
1 of 1

Loading...

Step 4: 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 4: 10 minutes.

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 with the name you chose has been created.

  • A had been created.

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.

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.

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.

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 nginx:latest.
Infrastructure and Plan
GKE Enabled
Tenant
Node Pool
The Kubernetes, Add Service page.
The Services page showing the running Service