#[non_exhaustive]pub struct TopologyManager {
pub policy: String,
pub scope: String,
/* private fields */
}Expand description
TopologyManager defines the configuration options for Topology Manager feature. See https://kubernetes.io/docs/tasks/administer-cluster/topology-manager/
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.policy: StringConfigures the strategy for resource alignment. Allowed values are:
- none: the default policy, and does not perform any topology alignment.
- restricted: the topology manager stores the preferred NUMA node affinity for the container, and will reject the pod if the affinity if not preferred.
- best-effort: the topology manager stores the preferred NUMA node affinity for the container. If the affinity is not preferred, the topology manager will admit the pod to the node anyway.
- single-numa-node: the topology manager determines if the single NUMA node affinity is possible. If it is, Topology Manager will store this and the Hint Providers can then use this information when making the resource allocation decision. If, however, this is not possible then the Topology Manager will reject the pod from the node. This will result in a pod in a Terminated state with a pod admission failure.
The default policy value is ‘none’ if unspecified. Details about each strategy can be found here.
scope: StringThe Topology Manager aligns resources in following scopes:
- container
- pod
The default scope is ‘container’ if unspecified. See https://kubernetes.io/docs/tasks/administer-cluster/topology-manager/#topology-manager-scopes
Implementations§
Trait Implementations§
Source§impl Clone for TopologyManager
impl Clone for TopologyManager
Source§fn clone(&self) -> TopologyManager
fn clone(&self) -> TopologyManager
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TopologyManager
impl Debug for TopologyManager
Source§impl Default for TopologyManager
impl Default for TopologyManager
Source§fn default() -> TopologyManager
fn default() -> TopologyManager
Returns the “default value” for a type. Read more
Source§impl Message for TopologyManager
impl Message for TopologyManager
Source§impl PartialEq for TopologyManager
impl PartialEq for TopologyManager
impl StructuralPartialEq for TopologyManager
Auto Trait Implementations§
impl Freeze for TopologyManager
impl RefUnwindSafe for TopologyManager
impl Send for TopologyManager
impl Sync for TopologyManager
impl Unpin for TopologyManager
impl UnwindSafe for TopologyManager
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more