kubelet

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

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