[][src]Struct kubelet::Kubelet

pub struct Kubelet<P> { /* fields omitted */ }

A Kubelet server backed by a given Provider.

A Kubelet is a special kind of server that handles Kubernetes requests to schedule pods.

The Kubelet creates a listener on the Kubernetes API (called an Informer), a webserver for API callbacks, and a periodic updater to let Kubernetes know that the node is still running.

The Provider supplies all of the backend-specific logic. Krustlet will only run one (instance of a) Provider. So a provider may be passed around from thread to thread during the course of the Kubelet's lifetime.

Implementations

impl<P: 'static + Provider + Sync + Send> Kubelet<P>[src]

pub async fn new(
    provider: P,
    kube_config: Config,
    config: Config
) -> Result<Self>
[src]

Create a new Kubelet with a provider, a kubernetes configuration, and a kubelet configuration

pub async fn start<'_>(&'_ self) -> Result<()>[src]

Begin answering requests for the Kubelet.

This will listen on the given address, and will also begin watching for Pod events, which it will handle.

Trait Implementations

impl<P> Clone for Kubelet<P>[src]

Auto Trait Implementations

impl<P> !RefUnwindSafe for Kubelet<P>

impl<P> Send for Kubelet<P> where
    P: Send + Sync

impl<P> Sync for Kubelet<P> where
    P: Send + Sync

impl<P> Unpin for Kubelet<P>

impl<P> !UnwindSafe for Kubelet<P>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,