Skip to content

Commit

Permalink
fix code blocks (#977)
Browse files Browse the repository at this point in the history
  • Loading branch information
nataliasitko committed Aug 13, 2024
1 parent 41f8724 commit 68e6011
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
7 changes: 4 additions & 3 deletions docs/user/tutorials/01-20-expose-httbin-gateway-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@ This tutorial shows how to expose an HTTPBin Service using Gateway API.

The Istio module does not install Gateway API CustomResourceDefinitions (CRDs). To install the CRDs from the standard channel, run the following command:

```bash
kubectl get crd gateways.gateway.networking.k8s.io &> /dev/null || \
```bash
kubectl get crd gateways.gateway.networking.k8s.io &> /dev/null || \
{ kubectl kustomize "github.com/kubernetes-sigs/gateway-api/config/crd?ref=v1.1.0" | kubectl apply -f -; }
```
```

> [!NOTE]
> If you've already installed Gateway API CRDs from the experimental channel, you must delete them before installing Gateway API CRDs from the standard channel.
Expand Down
15 changes: 8 additions & 7 deletions docs/user/tutorials/01-30-expose-tcp-gateway-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,19 @@ This tutorial shows how to expose a TCP Service using Gateway API.

Edit the Istio custom resource by setting **enableAlphaGatewayAPI** to `true`:

```bash
kubectl patch istios/default -n kyma-system --type merge -p '{"spec":{"experimental":{"pilot": {"enableAlphaGatewayAPI": true}}}}'
```
```bash
kubectl patch istios/default -n kyma-system --type merge -p '{"spec":{"experimental":{"pilot": {"enableAlphaGatewayAPI": true}}}}'
```

### Install the experimental version of Gateway API CustomResourceDefinitions

The Istio module does not install Gateway API CustomResourceDefinitions (CRDs). To install the CRDs from the experimental channel, run the following command:

```bash
kubectl get crd gateways.gateway.networking.k8s.io &> /dev/null || \
{ kubectl kustomize "github.com/kubernetes-sigs/gateway-api/config/crd/experimental?ref=v1.1.0" | kubectl apply -f -; }
```
```bash
kubectl get crd gateways.gateway.networking.k8s.io &> /dev/null || \
{ kubectl kustomize "github.com/kubernetes-sigs/gateway-api/config/crd/experimental?ref=v1.1.0" | kubectl apply -f -; }
```

> [!NOTE]
> If you've already installed Gateway API CRDs from the standard channel, you must delete them before installing Gateway API CRDs from the experimental channel.
Expand Down

0 comments on commit 68e6011

Please sign in to comment.