Skip to content

Instantly share code, notes, and snippets.

@rubencaro
Last active December 25, 2022 09:57
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rubencaro/534e2c5847da9bcb69f691f8c3103aac to your computer and use it in GitHub Desktop.
Save rubencaro/534e2c5847da9bcb69f691f8c3103aac to your computer and use it in GitHub Desktop.
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
Copy link
Author

screenshot_001

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment