> For the complete documentation index, see [llms.txt](https://docs.kubolabs.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.kubolabs.io/getting-started/kubovisor/cloud-mode/automatic-setup.md).

# Automatic setup

{% hint style="info" %}
The following content assumes you have [**`kubectl` binary**](https://kubernetes.io/docs/tasks/tools/#kubectl) **installed**, as well as a **privileged access** to your cluster to create listed resources.
{% endhint %}

For your convenience, we provide a [hand-crafted Bash script](https://download.kubolabs.io/scripts/setup_kubovisor) that will perform all the actions described in the [manual setup instructions](/getting-started/kubovisor/cloud-mode/manual-setup.md).

{% hint style="warning" %}
If you are using Windows, you will have to execute these commands in a [WSL system](https://learn.microsoft.com/en-us/windows/wsl/install) or some application like [Git Bash](https://gitforwindows.org/).
{% endhint %}

## :scroll: Download the script

{% tabs %}
{% tab title="curl" %}

```bash
curl -sO https://download.kubolabs.io/scripts/setup_kubovisor
chmod +x setup_kubovisor
```

{% endtab %}

{% tab title="wget" %}

```bash
wget -q https://download.kubolabs.io/scripts/setup_kubovisor
chmod +x setup_kubovisor
```

{% endtab %}
{% endtabs %}

## :face\_with\_monocle: Check current context

Make sure that your current kubecontext points to the correct cluster by, for example, checking the cluster Nodes:

```bash
kubectl get nodes
```

{% hint style="warning" %}
If this is not the correct cluster, you need to update your `KUBECONFIG` environment variable to point to the correct *kubeconfig* file:

```bash
export KUBECONFIG=/path/to/kubeconfig.yaml
```

{% endhint %}

## :zap: Execute the script

To setup KuboVisor on your cluster, you need to choose between the `limited` and `read-only` [permission levels](/getting-started/kubovisor/troubleshooting.md#what-are-permission-levels).

{% hint style="warning" %}
This script will create resources on your behalf in your cluster.

If you want to know what is actually done, you can review the resources created in the [manual setup instructions](/getting-started/kubovisor/cloud-mode/manual-setup.md).

**Please make sure that your current context targets the cluster where you want to setup KuboVisor.**
{% endhint %}

```bash
# Use limited permissions
./setup_kubovisor limited

# Use read-only permissions
./setup_kubovisor read-only
```

At the end of the execution, a *kubeconfig* file will be generated in the current directory. Use this *kubeconfig* on KuboVisor to [add your cluster](/getting-started/kubovisor/cloud-mode.md#add-your-cluster).
