[LINUX] Build a Kubernetes environment for development on Ubuntu

Kubernetes Explainer Video

On our YouTube channel, we have released a video explaining Kubernetes by CTO @bunchan_k.

REDIMPULZ Lab

I am also studying with this video, but since the procedure for building the Kubernetes environment of Ubuntu was not described, I practiced it with reference to the official documents and summarized it.

Install kubectl

You can either install the binaries or install them from your package manager. I decided to use the package manager (apt) to make it easier to update the version.

sudo apt-get update && sudo apt-get install -y apt-transport-https
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -
echo "deb https://apt.kubernetes.io/ kubernetes-xenial main" | sudo tee -a /etc/apt/sources.list.d/kubernetes.list
sudo apt-get update
sudo apt-get install -y kubectl

I haven't tried it, but it can be installed with snap.

https://kubernetes.io/ja/docs/tasks/tools/install-kubectl/

installation of minikube

You need to install kubectl in advance.

About hypervisor installation

Usually, you need a hypervisor environment that runs Kubernetes, such as KVM or VirtualBox.

Minikube also supports the --vm-driver = none option to run Kubernetes components on the host instead of the VM. You need Docker and a Linux environment to use this driver, but you don't need a hypervisor.

Since it is as above, Docker is also installed on my Ubuntu, so I will not use the hypervisor.

Installing minikube from Linux Homebrew

There are several methods, such as binary installation and package installation. In particular, it seemed easy to install from Linux Homebrew, so I will do it here.

Install Linux Homebrew

The procedure is the same as for mac.

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"

Leave it through the path.

echo 'eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv)' >> /home/takaken/.bash_profile

installation of minikube

brew install minikube

That's it!

Afterword

I was able to build a Kubernetes environment for development on Ubuntu. If you are using another Linux distribution, you can build it by the same procedure if you read the package management.

From now on, I plan to study how to run Lavavel and Node apps on K8s by referring to the video.

Reference site

Recommended Posts

Build a Kubernetes environment for development on Ubuntu
Build a local development environment for Laravel6.X on Mac
Build a Python development environment on your Mac
Build a mruby development environment for ESP32 (Linux)
Build a Python development environment on Raspberry Pi
Build a Django development environment using pyenv-virtualenv on Mac
# 2 Build a Python environment on AWS EC2 instance (ubuntu18.04)
Build a Python development environment on Mac OS X
How to build a development environment for TensorFlow (1.0.0) (Mac)
Build a Python development environment using pyenv on MacOS
Prepare Python development environment on Ubuntu
Building a Python environment on Ubuntu
Build Python 3.8 + Pipenv environment on Ubuntu 18.04
Build a python3 environment on CentOS7
How to build a new python virtual environment on Ubuntu
[Memo] Build a development environment for Django + Nuxt.js with Docker
Build an Ubuntu python development environment on Google Cloud Platform
Build a GVim-based Python development environment on Windows 10 (2) Basic settings
Until building a Python development environment using pyenv on Ubuntu 20.04
Build a python environment on CentOS 7.7 for your home server
Easily build a development environment with Laragon
Build Python3 and OpenCV environment on Ubuntu 18.04
Build a python environment on MacOS (Catallina)
Build a Python + OpenCV environment on Cloud9
Building a Python development environment for AI development
Creating a development environment for machine learning
Build a local development environment for Lambda + Python using Serverless Framework
# 3 Build a Python (Django) environment on AWS EC2 instance (ubuntu18.04) part2
How to build a Python environment using Virtualenv on Ubuntu 18.04 LTS
[DynamoDB] [Docker] Build a development environment for DynamoDB and Django with docker-compose
Build a LAMP environment on your local Docker
Build a WardPress environment on AWS with pulumi
Build python environment with pyenv on EC2 (ubuntu)
Build Python3.5 + matplotlib environment on Ubuntu 12 using Anaconda
Simply build a Python 3 execution environment on Windows
[Latest] How to build Java environment on Ubuntu
Build a Django environment on Raspberry Pi (MySQL)
Build a Python environment on Mac (Mountain Lion)
Build a version control environment for Python, Ruby, Perl, Node.js on UNIX
I created a Dockerfile for Django's development environment
Build a Django development environment with Doker Toolbox
Set up a Python development environment on Marvericks
build Python on Ubuntu
Build a Minecraft plugin development environment in Eclipse
How to build Java environment on Ubuntu (Linux)
Create a Python virtual development environment on Windows
Build a TensorFlow development environment on Amazon EC2 with command copy and paste
Build a local development environment with WSL + Docker Desktop for Windows + docker-lambda + Python
Set up a development environment for natural language processing
Build a machine learning Python environment on Mac OS
Build a Python extension for E-Cell 4 on Windows 7 (64bit)
Notes on creating a python development environment on macOS Catalina
Build a python environment for each directory with pyenv-virtualenv
Create a comfortable Python 3 (Anaconda) development environment on windows
[Linux] WSL2 Build an environment for laravel7 with Ubuntu 20.04
I made a Python3 environment on Ubuntu with direnv.
How to build a Django (python) environment on docker
I want to easily build a model-based development environment
Build a Python environment on your Mac using pyenv
Build a machine learning application development environment with Python
Procedure for building a CDK environment on Windows (Python)