--- title: Workload with NodePort Quick Start --- ### Prerequisite You have a running cluster with at least 1 node. ### 1. Deploying a Workload You're ready to create your first Kubernetes [workload](https://kubernetes.io/docs/concepts/workloads/). A workload is an object that includes pods along with other files and info needed to deploy your application. For this workload, you'll be deploying the application Rancher Hello-World. 1. From the **Clusters** page, open the cluster that you just created. 2. From the main menu of the **Dashboard**, select **Projects/Namespaces**. 3. Open the **Project: Default** project. 4. Click **Resources > Workloads.** 5. Click **Deploy**. **Step Result:** The **Deploy Workload** page opens. 6. Enter a **Name** for your workload. 7. From the **Docker Image** field, enter `rancher/hello-world`. This field is case-sensitive. 8. From **Port Mapping**, click **Add Port**. 9. From the **As a** drop-down, make sure that **NodePort (On every node)** is selected. ![As a dropdown, NodePort (On every node selected)](/img/nodeport-dropdown.png) 10. From the **On Listening Port** field, leave the **Random** value in place. ![On Listening Port, Random selected](/img/listening-port-field.png) 11. From the **Publish the container port** field, enter port `80`. ![Publish the container port, 80 entered](/img/container-port-field.png) 12. Leave the remaining options on their default setting. We'll tell you about them later. 13. Click **Launch**. **Result:** * Your workload is deployed. This process might take a few minutes to complete. * When your workload completes deployment, it's assigned a state of **Active**. You can view this status from the project's **Workloads** page.
### 2. Viewing Your Application From the **Workloads** page, click the link underneath your workload. If your deployment succeeded, your application opens. ### Attention: Cloud-Hosted Sandboxes When using a cloud-hosted virtual machine, you may not have access to the port running the container. In this event, you can test Nginx in an ssh session on the local machine using `Execute Shell`. Use the port number after the `:` in the link under your workload if available, which is `31568` in this example. ```sh gettingstarted@rancher:~$ curl http://localhost:31568 Rancher

Hello world!

My hostname is hello-world-66b4b9d88b-78bhx

k8s services found 2

INGRESS_D1E1A394F61C108633C4BD37AEDDE757 tcp://10.43.203.31:80
KUBERNETES tcp://10.43.0.1:443



gettingstarted@rancher:~$ ``` ### Finished Congratulations! You have successfully deployed a workload exposed via a NodePort. #### What's Next? When you're done using your sandbox, destroy the Rancher Server and your cluster. See one of the following: - [Amazon AWS: Destroying the Environment](../deploy-rancher-manager/aws.md#destroying-the-environment) - [DigitalOcean: Destroying the Environment](../deploy-rancher-manager/digitalocean.md#destroying-the-environment) - [Vagrant: Destroying the Environment](../deploy-rancher-manager/vagrant.md#destroying-the-environment)