- The DevOps 2.3 Toolkit
- Viktor Farcic
- 111字
- 2021-08-13 15:41:11
Creating a Cluster
We'll create a local Kubernetes cluster using Minikube.
All the commands from this chapter are available in the 03-pods.sh ( https://gist.github.com/vfarcic/d860631d0dd3158c32740e9260c7add0) Gist.
minikube start --vm-driver=virtualbox kubectl get nodes
The output of the latter command is as follows:
NAME STATUS ROLES AGE VERSION minikube Ready <none> 47s v1.8.0
To simplify the process and save you from writing all the configuration files, we'll clone the GitHub repository vfarcic/k8s-specs (https://github.com/vfarcic/k8s-specs). It contains everything we'll need for this chapter, as well as for most of the others in this book.
git clone https://github.com/vfarcic/k8s-specs.git cd k8s-specs
We cloned the repository and entered into the directory that was created.
Now we can run our first Pod.