# Running Hello World Application

## Hello World Deployment in Kubernetes

Open Docker Desktop and run **Docker**.

Open **Terminal** to start **Minikube**.

```
$ minikube start
```

```bash
$ kubectl get all
```

{% hint style="info" %}
&#x20;Lists all the resources present in the cluster, i.e. pods, services, deployments, replicas.&#x20;
{% endhint %}

{% file src="<https://2706222677-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Mg-RBIbw2wF_IDwm1S7%2F-Mg-eT5UEM5d-ScyWiDQ%2F-Mg-lXNXhi_7S9fgmLiE%2Fhelloworld.yaml?alt=media&token=2d24ef35-8890-4efa-a8e2-9b4f76995eab>" %}

Use this deployment file for Hello World application.

```bash
$ kubectl create -f helloworld.yaml
```

Expose the deployment as Node port to view in browser.

```bash
$ kubectl expose deployment helloworld --type=NodePort
```

Open your deployment in a browser!!

```bash
$ minikube service helloworld
```


---

# 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://amdocs-1.gitbook.io/kubernetes-handbook/installation-and-running-mac-os/running-hello-world-application.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.
