Documentation ¶
Index ¶
- func InstrumentHandler(h http.Handler) http.Handler
- func KubeletServerStart(p providers.Provider, l net.Listener, cert, key string)
- func MetricsServerStart(p providers.Provider, l net.Listener)
- func MetricsSummaryHandler(p providers.Provider) http.Handler
- func NotFound(w http.ResponseWriter, r *http.Request)
- func NotImplemented(w http.ResponseWriter, r *http.Request)
- func PodHandler(p providers.Provider) http.Handler
- type APIConfig
- type Config
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InstrumentHandler ¶ added in v0.6.2
InstrumentHandler wraps an http.Handler and injects instrumentation into the request context.
func KubeletServerStart ¶ added in v0.5.2
KubeletServerStart starts the virtual kubelet HTTP server.
func MetricsServerStart ¶ added in v0.5.2
MetricsServerStart starts an HTTP server on the provided addr for serving the kubelset summary stats API.
func MetricsSummaryHandler ¶ added in v0.6.2
MetricsSummaryHandler creates an http handler for serving pod metrics.
If the passed in provider does not implement providers.PodMetricsProvider, it will create handlers that just serves http.StatusNotImplemented
func NotFound ¶
func NotFound(w http.ResponseWriter, r *http.Request)
NotFound provides a handler for cases where the requested endpoint doesn't exist
func NotImplemented ¶ added in v0.6.2
func NotImplemented(w http.ResponseWriter, r *http.Request)
NotImplemented provides a handler for cases where a provider does not implement a given API
Types ¶
type APIConfig ¶ added in v0.6.2
APIConfig is used to configure the API server of the virtual kubelet.
type Config ¶ added in v0.6.2
type Config struct { APIConfig APIConfig Client *kubernetes.Clientset MetricsAddr string Namespace string NodeName string Provider providers.Provider ResourceManager *manager.ResourceManager Taint *corev1.Taint PodSyncWorkers int }
Config is used to configure a new server.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server masquarades itself as a kubelet and allows for the virtual node to be backed by non-vm/node providers.