Skip to content

Instantly share code, notes, and snippets.

@rubencaro

rubencaro/README.md

Last active Oct 16, 2020
Embed
What would you like to do?
Kubernetes development environment settings

Kubernetes development environment settings

These are my notes, not a generic solution. They are not meant to work anywhere outside my machines. Update version numbers to whatever are the current ones while you do this.

This solution does not use Docker at all

See this if you don't know how's that even possible. Understand this and this to see why is it advisable not to depend on Docker at all.

Install tooling to manage containers and VMs, and the CRI-O runtime

sudo dnf install VirtualBox buildah podman
sudo dnf module install cri-o:1.14/default

Install asdf and some plugins, then install Minikube & Kubectl

asdf lives in https://github.com/asdf-vm/asdf

Follow its installation instructions, which at the moment of writing were:

cd
git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.7.4

# For Ubuntu or other linux distros
echo '. $HOME/.asdf/asdf.sh' >> ~/.bashrc
echo '. $HOME/.asdf/completions/asdf.bash' >> ~/.bashrc

On a new terminal, install Minikube and Kubectl plugins:

asdf plugin-add minikube
asdf plugin-add kubectl

Then install both:

asdf install minikube 1.4.0
asdf install kubectl 1.16.0

Set some global versions if you find yourself needing them:

asdf global minikube 1.4.0
asdf global kubectl 1.16.0

First run

minikube config set vm-driver virtualbox
minikube start --container-runtime=cri-o

You should see:

screenshot_001

@rubencaro

This comment has been minimized.

Copy link
Owner Author

@rubencaro rubencaro commented Oct 2, 2019

screenshot_001

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.