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§
Source§impl Clone for NodeRegistrationOptions
impl Clone for NodeRegistrationOptions
Source§fn clone(&self) -> NodeRegistrationOptions
fn clone(&self) -> NodeRegistrationOptions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more