kube

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ServiceDomain added in v0.1.2

func ServiceDomain(svc *corev1.Service) string

func ServicePath added in v0.1.2

func ServicePath(svc *corev1.Service) string

Types

type Service

type Service struct {
	Address string
	Port    uint32
	Type    Type
	Path    string
	Domain  string
}

Service represents a headless k8s service that needs a loadbalancer

func (Service) Cluster

func (s Service) Cluster(connectTimeoutMs int, cb config.CircuitBreakerConfig, od config.OutlierDetectionConfig) *v2.Cluster

Cluster returns envoy control plane config for a headless strict dns lookup

func (Service) DefaultTarget

func (s Service) DefaultTarget() cp.Target

DefaultTarget represents the vhost target

type Type

type Type int32

Type is the type of service

const (
	//HTTP are plain old http services
	HTTP Type = iota
	//GRPC (see https://grpc.io/)
	GRPC
)

func ServiceType

func ServiceType(svc *corev1.Service) Type

Jump to

Keyboard shortcuts

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