# 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](/docs/automation-platform/overview/aws-services/containers/docker-registry-credentials.md).

*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](/docs/automation-platform/overview-1/quick-start/step-1-infrastructure.md) exist, both with the name that you chose.
* The Infrastructure has [GKE **Enabled**](/docs/automation-platform/overview-1/quick-start/step-1-infrastructure.md).
* A Tenant with the [name you chose has been created](/docs/automation-platform/overview-1/quick-start/step-2-tenant.md).

### 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="/files/CLLVFYDcz6FZglHN1via" 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="/files/VE2bPMyEc6cEmrrYKFvv" alt=""><figcaption><p>The <strong>Services</strong> page showing the running Service</p></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.duplocloud.com/docs/automation-platform/overview-1/quick-start/create-a-service-with-gke-autopilot/step-3-create-app-via-k8s.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
