Kubernetes For Developers
Kubernetes For Developers
The examples in this book will use command-line tools in a Terminal on your local machine.
The primary one will be kubectl, which communicates with a Kubernetes cluster. We will use
a tiny Kubernetes cluster of a single machine running on your own development system with
Minikube. I recommend installing the community edition of Docker, which makes it easy to
build containers for use within Kubernetes:
kubectl: kubectl (how to pronounce that is an amusing diversion within the Kubernetes
community) is the primary command-line tool that is used to work with a Kubernetes
cluster. To install kubectl, go to the
page https://kubernetes.io/docs/tasks/tools/install-kubectl/ and follow the
instructions relevant to your platform.
jq is a command-line JSON processor that makes it easy to parse results in more complex data
structures. I would describe it as grep's cousin that's better at dealing with JSON results. You
can install jq by following the instructions at https://stedolan.github.io/jq/download/. More
details on what jq does and how to use it can also be found
at https://stedolan.github.io/jq/manual/.