Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix IngressClasses example #340

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 13 additions & 13 deletions vcluster/_partials/quick-start-guide/explore-features.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ Configure features in a `vcluster.yaml` file. These examples show you how to con

<Flow>
<Step>

Modify `vcluster.yaml` so that vCluster creates the required Ingress resource.

```yaml
```yaml title="vcluster.yaml ingress configuration"
controlPlane:
ingress:
enabled: true
Expand Down Expand Up @@ -46,10 +46,10 @@ Configure features in a `vcluster.yaml` file. These examples show you how to con

<Flow>
<Step>

Modify `vcluster.yaml` to sync the nodes from the host cluster to the virtual cluster.

```yaml
```yaml title="vcluster.yaml node sync configuration"
sync:
fromHost:
nodes:
Expand All @@ -68,21 +68,21 @@ Configure features in a `vcluster.yaml` file. These examples show you how to con
</details>

<details>
<summary>Sync ingress from host cluster to virtual cluster</summary>
<summary>Sync ingress classes from host cluster to virtual cluster</summary>

If you want to use an ingress controller from the host cluster inside your virtual cluster, enable `IngressClass` syncing from the host cluster to virtual cluster.
If you want to use an ingress controller from the host cluster inside your virtual cluster by syncing `Ingress` resources from the virtual cluster to host cluster, and allow the host cluster IngressClasses to be viewable, enable `IngressClass` syncing from the host cluster to virtual cluster.

<Flow>
<Step>

Modify `vcluster.yaml` to sync the IngressClasses from the host cluster to the virtual cluster.

```yaml
```yaml title="vcluster.yaml ingress class sync configuration"
sync:
fromHost:
ingressClasses:
enabled: true
```
```

</Step>
<Step>
Expand All @@ -102,15 +102,15 @@ Configure features in a `vcluster.yaml` file. These examples show you how to con

<Flow>
<Step>

Modify `vcluster.yaml` to sync the ingresses from the virtual cluster to the host cluster.

```yaml
sync:
toHost:
ingresses:
enabled: true
```
```

</Step>
<Step>
Expand All @@ -130,7 +130,7 @@ Configure features in a `vcluster.yaml` file. These examples show you how to con

<Flow>
<Step>

Modify `vcluster.yaml` to sync the ingresses from the virtual cluster to the host cluster.

```yaml
Expand All @@ -149,4 +149,4 @@ Configure features in a `vcluster.yaml` file. These examples show you how to con
</Step>
</Flow>

</details>
</details>
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ Configure features in a `vcluster.yaml` file. These examples show you how to con

<Flow>
<Step>

Modify `vcluster.yaml` so that vCluster creates the required Ingress resource.

```yaml
```yaml title="vcluster.yaml ingress configuration"
controlPlane:
ingress:
enabled: true
Expand Down Expand Up @@ -46,10 +46,10 @@ Configure features in a `vcluster.yaml` file. These examples show you how to con

<Flow>
<Step>

Modify `vcluster.yaml` to sync the nodes from the host cluster to the virtual cluster.

```yaml
```yaml title="vcluster.yaml node sync configuration"
sync:
fromHost:
nodes:
Expand All @@ -68,21 +68,21 @@ Configure features in a `vcluster.yaml` file. These examples show you how to con
</details>

<details>
<summary>Sync ingress from host cluster to virtual cluster</summary>
<summary>Sync ingress classes from host cluster to virtual cluster</summary>

If you want to use an ingress controller from the host cluster inside your virtual cluster, enable `IngressClass` syncing from the host cluster to virtual cluster.
If you want to use an ingress controller from the host cluster inside your virtual cluster by syncing `Ingress` resources from the virtual cluster to host cluster, and allow the host cluster IngressClasses to be viewable, enable `IngressClass` syncing from the host cluster to virtual cluster.

<Flow>
<Step>

Modify `vcluster.yaml` to sync the IngressClasses from the host cluster to the virtual cluster.

```yaml
```yaml title="vcluster.yaml ingress class sync configuration"
sync:
fromHost:
ingressClasses:
enabled: true
```
```

</Step>
<Step>
Expand All @@ -102,15 +102,15 @@ Configure features in a `vcluster.yaml` file. These examples show you how to con

<Flow>
<Step>

Modify `vcluster.yaml` to sync the ingresses from the virtual cluster to the host cluster.

```yaml
sync:
toHost:
ingresses:
enabled: true
```
```

</Step>
<Step>
Expand All @@ -130,7 +130,7 @@ Configure features in a `vcluster.yaml` file. These examples show you how to con

<Flow>
<Step>

Modify `vcluster.yaml` to sync the ingresses from the virtual cluster to the host cluster.

```yaml
Expand All @@ -149,4 +149,4 @@ Configure features in a `vcluster.yaml` file. These examples show you how to con
</Step>
</Flow>

</details>
</details>