Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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
Click to show internal directories.
Click to hide internal directories.