translations

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 16, 2023 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PROTOCOL_TCP = iota
	PROTOCOL_HTTP
	PROTOCOL_REDIS
)

Variables

This section is empty.

Functions

This section is empty.

Types

type KubeMapper

type KubeMapper struct{}

KubeMapper wraps all conversion functions and allows configuring default values.

func (*KubeMapper) EnvoySnapshotFromKubeSnapshot

func (km *KubeMapper) EnvoySnapshotFromKubeSnapshot(snap *snapshot.Snapshot) (*cache.Snapshot, error)

EnvoySnaphsotFromKubeSnapshot generates an Envoy configuration snapshot servable to xDS APIs from Kubernetes Service/EndpointSlices.

func (*KubeMapper) MapEndpointSliceToLocalityEndpoints

func (km *KubeMapper) MapEndpointSliceToLocalityEndpoints(svc *v1.Service, endpointslices []*discoveryv1.EndpointSlice) []types.Resource

MapEndpointSliceToLocalityEndpoints maps endpointslices to a cluster load assignment.

func (*KubeMapper) MapServicePortToClusters

func (km *KubeMapper) MapServicePortToClusters(svc *v1.Service, port *v1.ServicePort) []types.Resource

MapServicePortToClusters creates a cluster for each service and ipfamily

func (*KubeMapper) MapServicePortToListeners

func (km *KubeMapper) MapServicePortToListeners(svc *v1.Service, port *v1.ServicePort) []types.Resource

MapServicePortToListeners creats a virtual listener for each IP:port combination

type PortSettings added in v0.0.2

type PortSettings struct {
	// Port protocol
	Protocol Protocol

	// Listener timeout
	IdleTimeout    time.Duration
	RequestTimeout time.Duration

	// Upstream timeouts
	UpstreamRequestTimeout time.Duration
	UpstreamIdleTimeout    time.Duration
	UpstreamConnectTimeout time.Duration

	// Retires
	EnableRetry bool
	RetryOn     string
	NumRetries  uint32

	// Circuit Breaking
	CircuitBreakerDefaultMaxConnections     uint32
	CircuitBreakerDefaultMaxPendingRequests uint32
	CircuitBreakerDefaultMaxRequests        uint32
	CircuitBreakerDefaultMaxRetries         uint32
	CircuitBreakerDefaultTrackRemaining     bool
	CircuitBreakerHighMaxConnections        uint32
	CircuitBreakerHighMaxPendingRequests    uint32
	CircuitBreakerHighMaxRequests           uint32
	CircuitBreakerHighMaxRetries            uint32
	CircuitBreakerHighTrackRemaining        bool

	// Outlier Detection
	OutlierDetectionInterval                  time.Duration
	OutlierDetectionBaseEjectionTime          time.Duration
	OutlierDetectionMaxEjectionTime           time.Duration
	OutlierDetectionMaxEjectionPercent        uint32
	OutlierDetectionConsecutive5xx            uint32
	OutlierDetectionConsecutiveGatewayFailure uint32

	// AccessLog
	AccessLog bool

	// Loadbalancing algorithm
	LoadBalancingPolicy cluster.Cluster_LbPolicy
}

type Protocol added in v0.0.2

type Protocol int

Protocol is used to determine the protocol based on the k8s port name.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL