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">

Create a `values.yaml` file with the following lines:

```yaml
openshift:
  enable: true
```

Then create the vCluster with the following command:
```
vcluster create my-vcluster -f values.yaml
```

</TabItem>
<TabItem value="helm">

Update the `vcluster.yaml` file described in the [deployment guide](../getting-started/deployment.mdx).

You will need to add the `openshift` block as shown below:

```yaml
openshift:
  enable: true
```

Then, install helm chart using `vcluster.yaml` for chart values as described in the [deployment guide](../getting-started/deployment.mdx).

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

Update the `vcluster-1.yaml` file from the previous steps. 

You will need to add a new rule as shown below:

```bash
kubectl create namespace host-namespace-1
helm template my-vcluster vcluster --repo https://charts.loft.sh --set serviceCIDR=10.96.0.0/12 --set openshift.enable=true -n host-namespace-1 | kubectl apply -f -
```
</TabItem>
</Tabs>
