Struct k8s_cluster_api::v1beta1::bootstrap::kubeadm::NodeRegistrationOptions
source · [−]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
sourceimpl Clone for NodeRegistrationOptions
impl Clone for NodeRegistrationOptions
sourcefn clone(&self) -> NodeRegistrationOptions
fn clone(&self) -> NodeRegistrationOptions
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for NodeRegistrationOptions
impl Debug for NodeRegistrationOptions
sourceimpl Default for NodeRegistrationOptions
impl Default for NodeRegistrationOptions
sourcefn default() -> NodeRegistrationOptions
fn default() -> NodeRegistrationOptions
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for NodeRegistrationOptions
impl<'de> Deserialize<'de> for NodeRegistrationOptions
sourcefn 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
sourceimpl Serialize for NodeRegistrationOptions
impl Serialize for NodeRegistrationOptions
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more