app

package
v0.0.0-...-be6134c Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2020 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCommandStartMetricsServer

func NewCommandStartMetricsServer(out, errOut io.Writer, stopCh <-chan struct{}) *cobra.Command

NewCommandStartMetricsServer provides a CLI handler for the metrics server entrypoint

Types

type MetricsServerOptions

type MetricsServerOptions struct {
	// genericoptions.ReccomendedOptions - EtcdOptions
	SecureServing  *genericoptions.SecureServingOptionsWithLoopback
	Authentication *genericoptions.DelegatingAuthenticationOptions
	Authorization  *genericoptions.DelegatingAuthorizationOptions
	Features       *genericoptions.FeatureOptions

	Kubeconfig string

	// Only to be used to for testing
	DisableAuthForTesting bool

	MetricResolution time.Duration

	KubeletPort                  int
	InsecureKubeletTLS           bool
	KubeletPreferredAddressTypes []string
	KubeletCAFile                string

	DeprecatedCompletelyInsecureKubelet bool
}

func NewMetricsServerOptions

func NewMetricsServerOptions() *MetricsServerOptions

NewMetricsServerOptions constructs a new set of default options for metrics-server.

func (MetricsServerOptions) Config

func (o MetricsServerOptions) Config() (*apiserver.Config, error)

func (MetricsServerOptions) Run

func (o MetricsServerOptions) Run(stopCh <-chan struct{}) error

Jump to

Keyboard shortcuts

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