Skip to main content

TTL

note

TTL was introduced in version v0.7.0 of the cli and sdks. Using earlier versions of these tools can drop the ttl field from the spec.

Overview

Signadot Route Groups can be configured for automatic deletion using the ttl field of a routegroup specification:

name: example-ttl
spec:
cluster: staging
ttl:
duration: 2h
offsetFrom: noMatchedSandboxes # Supported values: `noMatchedSandboxes` (default), `createdAt`, `updatedAt`
# ...

The field is optional, and in the absence of a ttl value the route group will continue to exist after no matched sandboxes. In the presence of the field, when more than ttl.duration time has passed since the route group was created, the routegroup lifetime is considered to be expired and the routegroup is deleted.

The full syntax and structure is described in the route group specification.

Considerations

As route group deletion requires synchronization with the cluster in which the route group resides, the delete operation can take up to a few minutes to complete. As a result, there can be a small amount of drift between the lifetime time limit and the effective completion of the delete operation.