From the course: Certified Kubernetes Administrator (CKA) Cert Prep

Unlock this course with a free trial

Join today to access over 25,300 courses taught by industry experts.

Using kubeadm init

Using kubeadm init

- Okay, now that we have done all preparation, we are ready for the real work, which is kubeadm init. So kubeadm is a command that you will always use with root privileges, and kubeadm init is only done on the control node, and that is because kubeadm init is setting up the cluster, and you are going to join the other nodes to the cluster that kubeadm init creates. While using kubeadm init to set up the cluster, different arguments can be used to further define the cluster, like --apiserver-advertise-address, that's the IP address on which the API server is listening, or --config, which is the name of a configuration file that is used for additional configuration, or --dry-run, which performs a dry run before actually installing for real, so that you can check if you meet all conditions required to install the cluster. - -pod-network-cidr allows you to set the CIDR that is used for the Pod network. That's a network address, and that is useful if you want to install in some specific…

Contents