Chapter 1. Getting Started with Kubernetes
In this first chapter we present recipes that will help you get started with Kubernetes. We show you how to use Kubernetes without installing it and introduce components such as the command-line interface (CLI) and the dashboard, which allow you to interact with a cluster, as well as Minikube, an all-in-one solution you can run on your laptop.
1.1 Using Kubernetes Without Installation
Problem
You want to try Kubernetes without installing it.
Solution
To use Kubernetes without installing it, follow the interactive tutorial on the Kubernetes website.
You can also use the Kubernetes playground on Katacoda. Once you’re signed in with GitHub or one of the social media authentication methods, you will see the page depicted in Figure 1-1.
Figure 1-1. Screenshot of the Katacoda Kubernetes playground
Note that an environment you launch in the playground is only available for a limited time—currently one hour—but it’s free of charge and all you need is a browser.
1.2 Installing the Kubernetes CLI, kubectl
Problem
You want to install the Kubernetes command-line interface so you can interact with your Kubernetes cluster.
Solution
Install kubectl in one of the following ways:
-
Download the source tarballs.
-
Use a package manager.
-
Build from source (see Recipe 13.1).
The documentation highlights a few mechanisms to get kubectl. The ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access