[−][src]Struct kubelet::Kubelet
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]
provider: P,
kube_config: Config,
config: Config
) -> Result<Self>
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]
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Auto Trait Implementations
impl<P> !RefUnwindSafe for Kubelet<P>
impl<P> Send for Kubelet<P> where
P: Send + Sync,
P: Send + Sync,
impl<P> Sync for Kubelet<P> where
P: Send + Sync,
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,