-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fa0746e
commit 95a7c85
Showing
6 changed files
with
46 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
website/content/docs/api-gateway/configuration/intentions.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
--- | ||
layout: docs | ||
page_title: Intention Configuration | ||
description: >- | ||
Intentions for Consul API Gateway control behavior for traffic into the service mesh according to rules. Learn about the required intentions and review an example configuration. | ||
--- | ||
|
||
# Route Resource Configuration | ||
|
||
This topic describes how to create and configure `Intention` resources for Consul API Gateway. Intentions are mechanisms that control traffic communication between services in the Consul service mesh. | ||
|
||
## Create an intention | ||
|
||
The following example creates an intention for the `echo` service that allows traffic from the `api-gateway` service: | ||
|
||
<CodeBlockConfig filename="routes.yaml"> | ||
|
||
```yaml | ||
apiVersion: consul.hashicorp.com/v1alpha1 | ||
kind: ServiceIntentions | ||
metadata: | ||
name: api-gateway | ||
spec: | ||
destination: | ||
name: echo | ||
sources: | ||
- name: api-gateway | ||
action: allow | ||
``` | ||
</CodeBlockConfig> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters