Skip to content

Commit

Permalink
Fix TCPRoute and TrafficTarget config in ACL example
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinpollet authored Sep 21, 2021
1 parent 7eb7c40 commit 1cbc2f5
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions docs/content/examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ metadata:
```yaml tab="deployment.yaml"
---
kind: Deployment
apiVersion: apps/v1
kind: Deployment
metadata:
name: whoami
namespace: whoami
Expand All @@ -54,8 +54,8 @@ spec:
imagePullPolicy: IfNotPresent

---
kind: Deployment
apiVersion: apps/v1
kind: Deployment
metadata:
name: whoami-tcp
namespace: whoami
Expand Down Expand Up @@ -262,8 +262,8 @@ spec:
methods: ["*"]
---
kind: TrafficTarget
apiVersion: access.smi-spec.io/v1alpha2
kind: TrafficTarget
metadata:
name: whatever
namespace: whoami
Expand All @@ -284,33 +284,33 @@ spec:
namespace: whoami
```


Incoming traffic on a TCP service can also be authorized using a `TrafficTarget` and a `TCPRoute`.
Incoming traffic on a TCP service can also be authorized using a `TCPRoute` and a `TrafficTarget`.

```yaml
---
kind: TrafficTarget
apiVersion: specs.smi-spec.io/v1alpha3
kind: TCPRoute
metadata:
name: my-tcp-route
namespace: whoami
spec: {}
---
apiVersion: access.smi-spec.io/v1alpha2
kind: TrafficTarget
metadata:
name: api-service-target
namespace: default
namespace: whoami
spec:
destination:
kind: ServiceAccount
name: api-service
namespace: default
name: whoami-server
namespace: whoami
rules:
- kind: TCPRoute
name: my-tcp-route
sources:
- kind: ServiceAccount
name: my-other-service
namespace: default
---
apiVersion: specs.smi-spec.io/v1alpha3
kind: TCPRoute
metadata:
name: my-tcp-route
spec: {}
name: whoami-client
namespace: whoami
```

0 comments on commit 1cbc2f5

Please sign in to comment.