-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: push all of the custom route bits ops
Based on new user feedback, it was determined that the custom route bits were confusing when bundled with the services. This change removes all of the custom entries and puts a general purpose doc into our ops guide. Signed-off-by: Kevin Carter <[email protected]>
- Loading branch information
Showing
16 changed files
with
102 additions
and
866 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,59 @@ | ||
# Custom Listeners | ||
|
||
!!! note "This step is not needed if all listeners were applied when the Gateway API was deployed" | ||
|
||
??? abstract "Example listener patch file found in `/opt/genestack/etc/gateway-api/listeners`" | ||
|
||
``` yaml | ||
--8<-- "etc/gateway-api/listeners/<SERVICE_NAME>-https.json" | ||
``` | ||
|
||
## Modify the Listener Patch | ||
|
||
This example changes the placeholder domain to `<YOUR_DOMAIN>`. Review the [gateway documentation](https://gateway-api.sigs.k8s.io/api-types/gateway) | ||
for more information on listener types. | ||
|
||
``` shell | ||
mkdir -p /etc/genestack/gateway-api/listeners | ||
sed 's/your.domain.tld/<YOUR_DOMAIN>/g' \ | ||
/opt/genestack/etc/gateway-api/listeners/<SERVICE_NAME>-https.json \ | ||
> /etc/genestack/gateway-api/listeners/<SERVICE_NAME>-https.json | ||
``` | ||
|
||
## Apply the Listener Patch | ||
|
||
``` shell | ||
kubectl patch -n nginx-gateway gateway flex-gateway \ | ||
--type='json' \ | ||
--patch-file /etc/genestack/gateway-api/listeners/<SERVICE_NAME>-https.json | ||
``` | ||
|
||
## Custom Routes | ||
|
||
!!! note "This step is not needed if all routes were applied when the Gateway API was deployed" | ||
|
||
A custom gateway route can be used when setting up the service. The custom route make it possible to for a domain like `your.domain.tld` to be used for the service. | ||
|
||
??? abstract "Example routes file found in `/opt/genestack/etc/gateway-api/routes`" | ||
|
||
``` yaml | ||
--8<-- "etc/gateway-api/routes/custom-<SERVICE_NAME>-gateway-route.yaml" | ||
``` | ||
|
||
## Modify the Route | ||
|
||
This example changes the placeholder domain to `<YOUR_DOMAIN>`. Review the [gateway route documentation](https://gateway-api.sigs.k8s.io/api-types/httproute) | ||
for more information on route types. | ||
|
||
``` shell | ||
mkdir -p /etc/genestack/gateway-api/routes | ||
sed 's/your.domain.tld/<YOUR_DOMAIN>/g' \ | ||
/opt/genestack/etc/gateway-api/routes/custom-<SERVICE_NAME>-gateway-route.yaml \ | ||
> /etc/genestack/gateway-api/routes/custom-<SERVICE_NAME>-gateway-route.yaml | ||
``` | ||
|
||
#### Apply the Route | ||
|
||
``` shell | ||
kubectl --namespace openstack apply -f /etc/genestack/gateway-api/routes/custom-<SERVICE_NAME>-gateway-route.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
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
Oops, something went wrong.