From the course: Kubernetes: Provisioning for Infrastructure as Code
Unlock this course with a free trial
Join today to access over 25,500 courses taught by industry experts.
Deploy a multi-node cluster with K3s - Kubernetes Tutorial
From the course: Kubernetes: Provisioning for Infrastructure as Code
Deploy a multi-node cluster with K3s
- [Instructor] We previously saw how to create a single node Kubernetes cluster with K3S. Creating a multiple node cluster is similarly straightforward. We'll first need to create a join token in node A. This token will be used by new nodes joining the cluster to quote unquote authenticate themselves prior to doing so. To do that, I'm going to type token equals and then some random string after it, like I love Kubernetes, for example. Next, we need to delete any K3S clusters that we created previously. This way, the new cluster that we create knows about our token. Now, if this is the first time you're setting up K3S, then go ahead and just skip this step. To uninstall K3S, what we're going to do is we're going to run sudo space slash usr slash local slash bin slash K3S hyphen uninstall dot sh. This will remove any cluster configuration data that K3S installed, as well as any scripts or any other data that K3S left behind.…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.