What is the difference between kubeadm join and kubernetes api node creation

307 Views Asked by At

I noticed that we can create node by Kubernetes API

  1. What is the difference between Kubeadm join and this api?
  2. Is it possible to create a new worker node only by Kubernetes Api (without kubeadm)?
1

There are 1 best solutions below

2
Jonas On BEST ANSWER

Node object in Kubernetes API

You can create Node objects via Kubernetes API - these Node objects are just representations for nodes in the cluster, they must also exists e.g. a machine with a Kubelet.

See Nodes in the Kubernetes documentation.

Join a machine to a cluster with kubeadm join

kubeadm join is a tool and command to join a machine to the cluster as a node. This includes many steps including bootstrapping the node using cryptographic certiticates.