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>,
}
Expand description
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§
source§impl<'de> Deserialize<'de> for NodeSpec
impl<'de> Deserialize<'de> for NodeSpec
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more