-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add guide for UpstreamSettingsPolicy (#2987)
Problem: As a user, I want an example of how to configure upstream settings for my application. Solution: Add a how-to guide describing how to configure upstream zone size and keepalives for services. Also adds UpstreamSettingsPolicy to the table in the custom policies document and moves the custom policies document closer to the top of the overview page to increase visibility.
- Loading branch information
1 parent
046f2d3
commit 2ea899a
Showing
11 changed files
with
422 additions
and
17 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
apiVersion: gateway.nginx.org/v1alpha1 | ||
kind: UpstreamSettingsPolicy | ||
metadata: | ||
name: 1m-zone-size | ||
spec: | ||
targetRefs: | ||
- group: core | ||
kind: Service | ||
name: tea | ||
- group: core | ||
kind: Service | ||
name: coffee | ||
zoneSize: 1m |
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 |
---|---|---|
@@ -1,4 +1,3 @@ | ||
# UpstreamSettingsPolicy | ||
|
||
This directory contains example YAMLs for testing the UpstreamSettingsPolicy CRD. Eventually, this will be converted | ||
into a how-to-guide. | ||
This directory contains the YAML files used in the [UpstreamSettingsPolicy](https://docs.nginx.com/nginx-gateway-fabric/how-to/traffic-management/upstream-settings/) guide. |
File renamed without changes.
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
6 changes: 1 addition & 5 deletions
6
...ings-policy/upstream-settings-policy.yaml → ...-settings-policy/upstream-keepalives.yaml
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 |
---|---|---|
@@ -1,15 +1,11 @@ | ||
apiVersion: gateway.nginx.org/v1alpha1 | ||
kind: UpstreamSettingsPolicy | ||
metadata: | ||
name: upstream-settings-policy | ||
name: upstream-keepalives | ||
spec: | ||
zoneSize: 512k | ||
targetRefs: | ||
- group: core | ||
kind: Service | ||
name: coffee | ||
keepAlive: | ||
connections: 32 | ||
requests: 1001 | ||
time: 300s | ||
timeout: 60s |
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
Oops, something went wrong.