status

package
v0.0.0-...-edfa39e Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2019 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// KubeAppProberCmdFlagName is the name of the command line flag for pilot agent to pass app prober config.
	KubeAppProberCmdFlagName = "kubeAppProberConfig"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	StatusPort       uint16
	AdminPort        uint16
	ApplicationPorts []uint16
	// KubeAppHTTPProbers is a json with Kubernetes application HTTP prober config encoded.
	KubeAppHTTPProbers string
}

Config for the status server.

type KubeAppProbers

type KubeAppProbers map[string]*corev1.HTTPGetAction

KubeAppProbers holds the information about a Kubernetes pod prober. It's a map from the prober URL path to the Kubernetes Prober config. For example, "/app-health/hello-world/livez" entry contains livenss prober config for container "hello-world".

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server provides an endpoint for handling status probes.

func NewServer

func NewServer(config Config) (*Server, error)

NewServer creates a new status server.

func (*Server) Run

func (s *Server) Run(ctx context.Context)

Run opens a the status port and begins accepting probes.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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