# 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](https://docs.stakepool.dev.br/polygon/kubernetes/files) 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="https://577206089-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FilWUahKUPyBVUGJl2b1M%2Fuploads%2Fgit-blob-619081350a4cbaa8ea4c9b286e9ffa71475f9251%2Fimage.png?alt=media" 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="https://577206089-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FilWUahKUPyBVUGJl2b1M%2Fuploads%2Fgit-blob-30e2cb568b7afef33610b22139601cfad9075d12%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://577206089-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FilWUahKUPyBVUGJl2b1M%2Fuploads%2Fgit-blob-147db956cc93456c9612c2987c1f76f74a7b5ec4%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>
