Kubernetes: Configuring a development local cluster
I recently started to learn about kubernetes, and I had to prepare my development environment, to practice and run my applications. So, this post I just a step-by-step of how I made.
This steps is just for Mac users, if you need help with some other plataform, please follow the instructors on the official documentation.
I am using the Minikube, to setup my environment, but you have other flavors to run kubernetes in a local-machine.
To build a local cluster of kubernetes, you will need:
I will use
brew to install all requirements, this is the fastest way you can install all you need.
brew cask install docker virtualbox
brew install kubernetes-cli
brew cask install minikube
You need root permission to install some packages, also need allow them on
Security & Privacy.
Starting the cluster
After whole instalation, let’s check with all we need are installed.
$ docker version Client: Docker Engine - Community Version: 18.09.2 API version: 1.39 Go version: go1.10.8 Git commit: 6247962 Built: Sun Feb 10 04:12:39 2019 OS/Arch: darwin/amd64 Experimental: false Server: Docker Engine - Community Engine: Version: 18.09.2 API version: 1.39 (minimum version 1.12) Go version: go1.10.6 Git commit: 6247962 Built: Sun Feb 10 04:13:06 2019 OS/Arch: linux/amd64 Experimental: false
$ minikube version minikube version: v0.34.1
So let start our cluster, with the following command:
$ minikube start
This will take time, but after that you cluster should be running and you can do you marvelous experiments. You can see some basics example here, but I am going to write more useful examples in the future.
Ps.: This is my first post written in English, if you find any typo, feel free to suggest the hotfix! ;D