Struct k8s_cluster_api::v1beta1::bootstrap::kubeadm::NodeRegistrationOptions [−][src]
pub struct NodeRegistrationOptions {
pub name: Option<String>,
pub cri_socket: Option<String>,
pub taints: Vec<Taint>,
pub kubelet_extra_args: BTreeMap<String, String>,
pub ignore_preflight_errors: Vec<String>,
}
Expand description
NodeRegistrationOptions holds fields that relate to registering a new control-plane or node to the cluster, either via “kubeadm init” or “kubeadm join”.
Fields
name: Option<String>
Name is the .Metadata.Name
field of the Node API object that will be created in this kubeadm init
or kubeadm join
operation.
This field is also used in the CommonName field of the kubelet’s client certificate to the API server.
Defaults to the hostname of the node if not provided.
cri_socket: Option<String>
CRISocket is used to retrieve container runtime info. This information will be annotated to the Node API object, for later re-use
taints: Vec<Taint>
Taints specifies the taints the Node API object should be registered with. If this field is unset, i.e. nil, in the kubeadm init
process
it will be defaulted to []v1.Taint{‘node-role.kubernetes.io/master=“”’}. If you don’t want to taint your control-plane node, set this field to an
empty slice, i.e. taints: {}
in the YAML file. This field is solely used for Node registration.
kubelet_extra_args: BTreeMap<String, String>
KubeletExtraArgs passes through extra arguments to the kubelet. The arguments here are passed to the kubelet command line via the environment file kubeadm writes at runtime for the kubelet to source. This overrides the generic base-level configuration in the kubelet-config-1.X ConfigMap Flags have higher priority when parsing. These values are local and specific to the node kubeadm is executing on.
ignore_preflight_errors: Vec<String>
IgnorePreflightErrors provides a slice of pre-flight errors to be ignored when the current node is registered.
Trait Implementations
Returns the “default value” for a type. Read more
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
Auto Trait Implementations
impl RefUnwindSafe for NodeRegistrationOptions
impl Send for NodeRegistrationOptions
impl Sync for NodeRegistrationOptions
impl Unpin for NodeRegistrationOptions
impl UnwindSafe for NodeRegistrationOptions
Blanket Implementations
Mutably borrows from an owned value. Read more
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