gateway api v1.6.2 experimental

XBackendTrafficPolicy.spec

Spec defines the desired state of BackendTrafficPolicy.

3 fields
XBackendTrafficPolicy.spec fields and descriptions
Field / TypeDescription
object

RetryConstraint defines the configuration for when to allow or prevent further retries to a target backend, by dynamically calculating a 'retry budget'. This budget is calculated based on the percentage of incoming traffic composed of retries over a given time interval. Once the budget is exceeded, additional retries will be rejected. For example, if the retry budget interval is 10 seconds, there have been 1000 active requests in the past 10 seconds, and the allowed percentage of requests that can be retried is 20% (the default), then 200 of those requests may be composed of retries. Active requests will only be considered for the duration of the interval when calculating the retry budget. Retrying the same original request multiple times within the retry budget interval will lead to each retry being counted towards calculating the budget. Configuring a RetryConstraint in BackendTrafficPolicy is compatible with HTTPRoute Retry settings for each HTTPRouteRule that targets the same backend. While the HTTPRouteRule Retry stanza can specify whether a request will be retried, and the number of retry attempts each client may perform, RetryConstraint helps prevent cascading failures such as retry storms during periods of consistent failures. After the retry budget has been exceeded, additional retries to the backend MUST return a 503 response to the client. Additional configurations for defining a constraint on retries MAY be defined in the future. Support: Extended

object

SessionPersistence defines and configures session persistence for the backend. Support: Extended

  • x-kubernetes-validations: [{"message":"AbsoluteTimeout must be specified when cookie lifetimeType is Permanent","rule":"!has(self.cookieConfig) || !has(self.cookieConfig.lifetimeType) || self.cookieConfig.lifetimeType != 'Permanent' || has(self.absoluteTimeout)"},{"message":"cookieConfig can only be set with type Cookie","rule":"!has(self.cookieConfig) || self.type == 'Cookie'"}]
object[] required

TargetRefs identifies API object(s) to apply this policy to. Currently, Backends (A grouping of like endpoints such as Service, ServiceImport, or any implementation-specific backendRef) are the only valid API target references. Currently, a TargetRef cannot be scoped to a specific port on a Service.

  • minItems: 1
  • maxItems: 16
  • x-kubernetes-list-map-keys: ["group","kind","name"]
  • x-kubernetes-list-type: "map"