# Run a node

**Before starting the installation, make sure to verify that the worker cluster is active. You can do this by checking the status of your node.**

```
sudo kubectl get nodes
```

Now that the entire environment is up and running, all that's left is to save the [files](/polygon/kubernetes/files.md) with a .yaml extension and execute them.\\

```
sudo kuebctl apply -f deploy-storage.yaml
sudo kubectl apply -f deploy.yaml
```

**To check whether the polygon node is running, you can check the status of the pod.**

```
sudo kubectl get deploy -o wide
```

<figure><img src="/files/3ywZTY5EnHeAf1S7lMyl" alt=""><figcaption></figcaption></figure>

To check the logs you can pass the name of the pod plus the name of the container you want to view, example:

```
sudo kubectl logs -f polygon-sentry-deployment-cc9449857-9f95k -c heimdall
```

<figure><img src="/files/g4d5bGshuspQLJL70p9O" alt=""><figcaption></figcaption></figure>

<pre><code><strong>sudo kubectl logs -f polygon-sentry-deployment-cc9449857-9f95k -c bor
</strong></code></pre>

<figure><img src="/files/2W3SxbRvpqQxrLBECNJ9" alt=""><figcaption></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.stakepool.dev.br/polygon/kubernetes/run-a-node.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.
