# Step 3: Create a Service

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](https://docs.duplocloud.com/docs/automation-platform/overview/aws-services/containers/docker-registry-credentials).

*Estimated time to complete Step 3: 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 [Infrastructure and Plan](https://docs.duplocloud.com/docs/automation-platform/overview-1/quick-start/step-1-infrastructure) exist, both with the name that you chose.
* The Infrastructure has [GKE **Enabled**](https://docs.duplocloud.com/docs/automation-platform/overview-1/quick-start/step-1-infrastructure).
* A Tenant with the [name you chose has been created](https://docs.duplocloud.com/docs/automation-platform/overview-1/quick-start/step-2-tenant).

### 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").
4. In the **Docker image** field, enter the docker image (`nginx:latest`).

<figure><img src="https://2471407984-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F68cb0s9ce5UIUKWPuYs8%2Fuploads%2FwUCMH9m2xvf8kRK0IUTD%2Fscreenshot-nimbusweb.me-2024.02.23-14_16_57.png?alt=media&#x26;token=005d5a3c-e901-438f-9bfa-3b60c993c5bf" alt=""><figcaption><p>The Kubernetes, <strong>Add Service</strong> page.</p></figcaption></figure>

5. Click **Next**. The **Advanced Options** page is displayed.
6. At the bottom of the **Advanced Options** page, click **Create**. Your Service is created and initialized.

{% hint style="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**.
{% endhint %}

## Checking your work

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

<figure><img src="https://2471407984-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F68cb0s9ce5UIUKWPuYs8%2Fuploads%2F3XgCLBrDtjJ95Kb6Pgc4%2Fscreenshot-nimbusweb.me-2024.03.04-19_28_55.png?alt=media&#x26;token=24dc9efb-726c-45e2-a535-265f40bf97c7" alt=""><figcaption><p>The <strong>Services</strong> page showing the running Service</p></figcaption></figure>
