signadot routegroup
Note
The examples here work with v0.3.7+ of the Signadot CLI.
To create a RouteGroup (alias: rg
), first write a YAML or JSON file containing the name
and spec
. The available fields within spec
are documented in the RouteGroup spec reference.
For example:
name: my-routegroup
spec:
cluster: my-cluster
description: "route group for testing multiple sandboxes together"
match:
any:
- label:
key: feature
value: new-feature-x-*
endpoints:
- name: frontend-endpoint
target: http://frontend.hotrod.svc:8080
Submit this route group by passing the filename to the routegroup apply
command:
signadot routegroup apply -f my-routegroup.yaml
You can use routegroup list
to see all existing route groups, and routegroup get
to see details about a single route group:
# List all route groups
signadot routegroup list
# Get one route group by name
signadot routegroup get my-routegroup
You can delete a route group either by name or by pointing at the same file that was used to create it:
# Delete route group by name
signadot routegroup delete my-routegroup
# Delete route group specified in a file
signadot routegroup delete -f my-routegroup.yaml
For reusable route group definitions, check out YAML Templates.