nodeportproxy

package
v2.17.0 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// NodePortPRoxyExposeNamespacedAnnotationKey is the annotation key used to indicate that
	// a service should be exposed by the namespaced NodeportProxy instance.
	// We use it when clusters get exposed via a LoadBalancer, to allow re-using that LoadBalancer
	// for both the kube-apiserver and the openVPN server
	NodePortProxyExposeNamespacedAnnotationKey = "nodeport-proxy.k8s.io/expose-namespaced"
	DefaultExposeAnnotationKey                 = "nodeport-proxy.k8s.io/expose"
	// PortHostMappingAnnotationKey contains the mapping between the port to be
	// exposed and the hostname, this is only used when the ExposeType is
	// SNIType.
	PortHostMappingAnnotationKey = "nodeport-proxy.k8s.io/port-mapping"
)

Variables

This section is empty.

Functions

func EnsureResources

func EnsureResources(ctx context.Context, client ctrlruntimeclient.Client, data nodePortProxyData) error

func FrontLoadBalancerServiceCreator

func FrontLoadBalancerServiceCreator() reconciling.NamedServiceCreatorGetter

FrontLoadBalancerServiceCreator returns the creator for the LoadBalancer that fronts apiserver and openVPN when using exposeStrategy=LoadBalancer

Types

type ExposeType added in v2.16.3

type ExposeType int

ExposeType defines the strategy used to expose the service.

const (
	// NodePortType is the default ExposeType which creates a listener for each
	// NodePort.
	NodePortType ExposeType = iota
	// SNIType configures Envoy to route TLS streams based on SNI
	// without terminating them.
	SNIType
	// TunnelingType configures Envoy to terminate the tunnel and stream the
	// data to the destination.
	// The only supported tunneling tecnique at the moment in HTTP/2 Connect.
	TunnelingType
)

func ExposeTypeFromString added in v2.16.3

func ExposeTypeFromString(s string) (ExposeType, bool)

ExposeTypeFromString returns the ExposeType which string representation corresponds to the input string, and a boolean indicating whether the corresponding ExposeType was found or not.

func (ExposeType) String added in v2.16.3

func (e ExposeType) String() string

String returns the string representation of the ExposeType.

type ExposeTypes added in v2.16.3

type ExposeTypes map[ExposeType]sets.Empty

func NewExposeTypes added in v2.16.3

func NewExposeTypes(exposeTypes ...ExposeType) ExposeTypes

func (ExposeTypes) Has added in v2.16.3

func (e ExposeTypes) Has(item ExposeType) bool

func (ExposeTypes) Insert added in v2.16.3

func (e ExposeTypes) Insert(item ExposeType)

Jump to

Keyboard shortcuts

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