From the course: Debugging Kubernetes

Installing kind and troubleshooting tools - Kubernetes Tutorial

From the course: Debugging Kubernetes

Installing kind and troubleshooting tools

- [Instructor] In this video, we're going to install all of the tools we need to troubleshoot the problems we'll solve throughout this course. Namely, kubectl and yq. Installing them is easy. With Homebrew, you install it by running brew install kind kubectl yq. If you're on Windows, replace brew with choco. If you need a refresher on how to install Homebrew or Chocolatey, check out the previous videos in this course. Once you enter this command, hit Enter to proceed. Now that installation is finished, we're going to print version information from each tool to confirm that they were properly installed. For example, with kind, I'm going to type kind --version. This will give me kind version information or the version of kind that was installed. I'm going to do the same for yq. As you can see, we get information about the version of yq that was installed. Now, if we do the same with kubectl, you'll notice that it doesn't work because kubectl does not have a --version flag. What they do have, however, is a version subcommand. However, we can't run it just like this because, when we do so, it's going to try to connect to a default Kubernetes cluster, which we don't have yet. So, if you want to hide this error message, you can simply rerun this command and add --client to the end of it. However, either way, we've confirmed that kubectl was installed properly because we get information about the client that we've installed. In the next video, we're going to set up our first local Kubernetes cluster with kind. Stay tuned.

Contents