Struct turbolift::kubernetes::K8s[][src]

pub struct K8s { /* fields omitted */ }
Expand description

K8s is the interface for turning rust functions into autoscaling microservices using turbolift. It requires docker and kubernetes / kubectl to already be setup on the device at runtime.

Access to the kubernetes cluster must be inferrable from the env variables at runtime per kube-rs’s try_default().

Implementations

returns a K8s object. If max is equal to 1, then autoscaling is not enabled. Otherwise, autoscale is automatically activated with cluster defaults and a max number of replicas per distributed function of max. Panics if max < 1.

The deploy container function is used for making containers accessible to the cluster. See K8s::deploy_container.

Trait Implementations

Formats the value using the given formatter. Read more

declare a function

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more