import Tabs from '@theme/Tabs'
import TabItem from '@theme/TabItem'

<Tabs
  defaultValue="vcluster"
  values={[
    { label: 'vcluster', value: 'vcluster', },
    { label: 'helm', value: 'helm', },
    { label: 'kubectl', value: 'kubectl', },
  ]
}>
<TabItem value="vcluster">

Execute the following command to permanently opt out of telemetry on a given machine:

```
vcluster telemetry disable
```

Your decision will be saved in `$HOME/.vcluster/config.json`.
All subsequently created or upgraded vCluster instances managed by the vCluster CLI will have the telemetry disabled.

To re-enable telemetry, you can execute the following command:

```
vcluster telemetry enable
```
</TabItem>
<TabItem value="helm">

Create a `vcluster.yaml` file:

```yaml
telemetry:
  disabled: "true"
```

Then, install helm chart using `vcluster.yaml` for chart values:
```bash
helm upgrade --install my-vcluster vcluster \
  --values vcluster.yaml \
  --repo https://charts.loft.sh \
  --namespace host-namespace-1 \
  --repository-config=''
```

</TabItem>
<TabItem value="kubectl">

Create a `vcluster.yaml` file:
```yaml
telemetry:
  disabled: "true"
```
then execute:
```bash
kubectl create namespace host-namespace-1
helm template my-vcluster vcluster --repo https://charts.loft.sh -n host-namespace-1 --values vcluster.yaml | kubectl apply -f -
```

</TabItem>
</Tabs>
