Struct k8s_openapi::v1_9::api::core::v1::NodeSpec [−][src]
pub struct NodeSpec { pub config_source: Option<NodeConfigSource>, pub external_id: Option<String>, pub pod_cidr: Option<String>, pub provider_id: Option<String>, pub taints: Option<Vec<Taint>>, pub unschedulable: Option<bool>, }
NodeSpec describes the attributes that a node is created with.
Fields
config_source: Option<NodeConfigSource>
If specified, the source to get node configuration from The DynamicKubeletConfig feature gate must be enabled for the Kubelet to use this field
external_id: Option<String>
External ID of the node assigned by some machine database (e.g. a cloud provider). Deprecated.
pod_cidr: Option<String>
PodCIDR represents the pod IP range assigned to the node.
provider_id: Option<String>
ID of the node assigned by the cloud provider in the format:
taints: Option<Vec<Taint>>
If specified, the node's taints.
unschedulable: Option<bool>
Unschedulable controls node schedulability of new pods. By default, node is schedulable. More info: https://kubernetes.io/docs/concepts/nodes/node/#manual-node-administration
Trait Implementations
impl Clone for NodeSpec
[src]
impl Clone for NodeSpec
fn clone(&self) -> NodeSpec
[src]
fn clone(&self) -> NodeSpec
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for NodeSpec
[src]
impl Debug for NodeSpec
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Default for NodeSpec
[src]
impl Default for NodeSpec
impl PartialEq for NodeSpec
[src]
impl PartialEq for NodeSpec
fn eq(&self, other: &NodeSpec) -> bool
[src]
fn eq(&self, other: &NodeSpec) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &NodeSpec) -> bool
[src]
fn ne(&self, other: &NodeSpec) -> bool
This method tests for !=
.
impl<'de> Deserialize<'de> for NodeSpec
[src]
impl<'de> Deserialize<'de> for NodeSpec
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Serialize for NodeSpec
[src]
impl Serialize for NodeSpec