Struct k8s_openapi::api::node::v1alpha1::RuntimeClassSpec
source · [−]pub struct RuntimeClassSpec {
pub overhead: Option<Overhead>,
pub runtime_handler: String,
pub scheduling: Option<Scheduling>,
}
Expand description
RuntimeClassSpec is a specification of a RuntimeClass. It contains parameters that are required to describe the RuntimeClass to the Container Runtime Interface (CRI) implementation, as well as any other components that need to understand how the pod will be run. The RuntimeClassSpec is immutable.
Fields
overhead: Option<Overhead>
Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. For more details, see https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md This field is beta-level as of Kubernetes v1.18, and is only honored by servers that enable the PodOverhead feature.
runtime_handler: String
RuntimeHandler specifies the underlying runtime and configuration that the CRI implementation will use to handle pods of this class. The possible values are specific to the node & CRI configuration. It is assumed that all handlers are available on every node, and handlers of the same name are equivalent on every node. For example, a handler called “runc” might specify that the runc OCI runtime (using native Linux containers) will be used to run the containers in a pod. The RuntimeHandler must be lowercase, conform to the DNS Label (RFC 1123) requirements, and is immutable.
scheduling: Option<Scheduling>
Scheduling holds the scheduling constraints to ensure that pods running with this RuntimeClass are scheduled to nodes that support it. If scheduling is nil, this RuntimeClass is assumed to be supported by all nodes.
Trait Implementations
Returns the “default value” for a type. Read more
Deserialize this value from the given Serde deserializer. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for RuntimeClassSpec
impl Send for RuntimeClassSpec
impl Sync for RuntimeClassSpec
impl Unpin for RuntimeClassSpec
impl UnwindSafe for RuntimeClassSpec
Blanket Implementations
Mutably borrows from an owned value. Read more