Documentation
¶
Overview ¶
Package mesh turns Envoy static route config and Istio VirtualServices into retry layers, and attaches them to outbound calls by URL.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnvoyLayer ¶
EnvoyLayer reads an Envoy static config and returns the retry layer of the first route on the listener bound to port (or the first listener).
func IstioDefault ¶
IstioDefault is the policy pilot applies when a route has no retries stanza. From pilot/pkg/networking/core/route/retry/retry.go: 2 retries on connect-failure,refused-stream,unavailable,cancelled,retriable-status-codes, with RetriableStatusCodes=[503] up to 1.26 and none from 1.27.
Types ¶
type Route ¶
type Route struct {
URL string `yaml:"url"` // e.g. http://envoy:10000 ; matched as a prefix
Envoy string `yaml:"envoy"` // envoy static bootstrap/route config file
Istio string `yaml:"istio"` // file with VirtualService(s)
Host string `yaml:"host"` // Istio destination host, e.g. mid or mid.default.svc.cluster.local
Layer model.Layer `yaml:"-"`
}
Route says which config governs calls to a URL prefix.
type Routes ¶
Routes is the routes file.
func LoadRoutes ¶
LoadRoutes reads the routes file and parses every referenced config.