Skip to content

Commit

Permalink
chore: nits
Browse files Browse the repository at this point in the history
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
  • Loading branch information
eddycharly committed Mar 11, 2024
1 parent f6ae2fd commit 52a3467
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions demo/istio/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ kubectl apply -f ./manifests/sample-application.yaml
We are going to call the sample application using a pod in the cluster.

```console
kubectl run test -it --rm --restart=Never --image=busybox -- wget -q --output-document - echo.demo.svc.cluster.local:8080/foo
kubectl run test -it --rm --restart=Never --image=busybox -- wget -q --output-document - echo.demo.svc.cluster.local:8080/foo

{
"path": "/foo",
Expand Down Expand Up @@ -103,14 +103,14 @@ The provider will be registered later in the istio config map.
Calling the sample application again at the `/foo` path will return `403 Forbidden`.

```console
kubectl run test -it --rm --restart=Never --image=busybox -- wget -q --output-document - echo.demo.svc.cluster.local:8080/foo
kubectl run test -it --rm --restart=Never --image=busybox -- wget -q --output-document - echo.demo.svc.cluster.local:8080/foo
wget: server returned error: HTTP/1.1 403 Forbidden
```

Note that calling another path (like `/bar`) succeeds as it's not part of the policy.

```console
kubectl run test -it --rm --restart=Never --image=busybox -- wget -q --output-document - echo.demo.svc.cluster.local:8080/bar
kubectl run test -it --rm --restart=Never --image=busybox -- wget -q --output-document - echo.demo.svc.cluster.local:8080/bar

{
"path": "/bar",
Expand Down

0 comments on commit 52a3467

Please sign in to comment.