kubelet

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2025 License: Apache-2.0 Imports: 12 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitNodeAuthorizedClient added in v0.8.6

func InitNodeAuthorizedClient(kubeletKubeConfigPath string) (*kubernetes.Clientset, error)

InitNodeAuthorizedClient initializes node authorized client with kubelet's kube config. This is now an available workaround to implement a node-scoped daemonset. See discussion https://github.com/kubernetes/enhancements/pull/944#issuecomment-490242290

func ReadAll

func ReadAll(r io.Reader) ([]byte, error)

Types

type KubeletClient

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

func NewKubeletClient

func NewKubeletClient(config *KubeletClientConfig) (*KubeletClient, error)

func (*KubeletClient) GetNodeRunningPods

func (k *KubeletClient) GetNodeRunningPods() (*v1.PodList, error)

type KubeletClientConfig

type KubeletClientConfig struct {
	// Address specifies the kubelet address
	Address string

	// Port specifies the default port - used if no information about Kubelet port can be found in Node.NodeStatus.DaemonEndpoints.
	Port uint

	// TLSClientConfig contains settings to enable transport layer security
	restclient.TLSClientConfig

	// Server requires Bearer authentication
	BearerToken string

	// HTTPTimeout is used by the client to timeout http requests to Kubelet.
	HTTPTimeout time.Duration
}

KubeletClientConfig defines config parameters for the kubelet client

Jump to

Keyboard shortcuts

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