What Is Kubernetes
Part of the Introduction to Kubernetes section of Coddy's Terminal journey. Lesson 1 of 45.
Kubernetes (often written K8s) runs containers for you at scale. Docker builds and runs a container on one machine; Kubernetes takes many containers and spreads them across a cluster of machines, restarts them when they crash, scales them up and down, and connects them to each other.
You describe what you want (three copies of my web server, reachable on port 80) and Kubernetes keeps the cluster in that state.
You control a cluster from the terminal with the kubectl command. Every command follows the same pattern: a verb and a resource, such as kubectl get pods or kubectl delete pod web.
To check that the tool is installed and see its version, run:
kubectl version --clientThe --client flag prints only the version of kubectl itself, without contacting a cluster.
Challenge
BeginnerRun kubectl version --client to confirm kubectl is installed and see which version you are using.
Try it yourself
This lesson includes a short quiz. Start the lesson to answer it and track your progress.
All lessons in Introduction to Kubernetes
Practice on your own: Terminal playground