Skip to content

Commit

Permalink
Update service-intentions.mdx
Browse files Browse the repository at this point in the history
  • Loading branch information
lkysow authored May 24, 2023
1 parent f9d1451 commit a6322d8
Showing 1 changed file with 20 additions and 15 deletions.
35 changes: 20 additions & 15 deletions website/content/docs/connect/config-entries/service-intentions.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -816,6 +816,8 @@ Sources = [
```yaml
apiVersion: consul.hashicorp.com/v1alpha1
kind: ServiceIntentions
metadata:
name: db
spec:
destination:
name: db
Expand Down Expand Up @@ -865,6 +867,8 @@ Sources = [
```yaml
apiVersion: consul.hashicorp.com/v1alpha1
kind: ServiceIntentions
metadata:
name: web-deny-all
spec:
destination:
name: *
Expand Down Expand Up @@ -908,6 +912,8 @@ Sources = [
```yaml
apiVersion: consul.hashicorp.com/v1alpha1
kind: ServiceIntentions
metadata:
name: db
spec:
destination:
name: db
Expand Down Expand Up @@ -1251,20 +1257,19 @@ When using cluster peering connections, intentions secure your deployments with
```

```yaml
```yaml
apiVersion: consul.hashicorp.com/v1alpha1
kind: ServiceIntentions
metadata:
name: backend-deny
spec:
destination:
name: backend
sources:
- name: "*"
action: deny
- name: frontend
action: allow
peer: cluster-01 ## The peer of the source service
apiVersion: consul.hashicorp.com/v1alpha1
kind: ServiceIntentions
metadata:
name: backend-deny
spec:
destination:
name: backend
sources:
- name: "*"
action: deny
- name: frontend
action: allow
peer: cluster-01 ## The peer of the source service
```
```json
Expand All @@ -1281,4 +1286,4 @@ When using cluster peering connections, intentions secure your deployments with
}
```

</CodeTabs>
</CodeTabs>

0 comments on commit a6322d8

Please sign in to comment.