Skip to content

Instantly share code, notes, and snippets.

@swagfin
Last active March 23, 2024 09:44
Show Gist options
  • Save swagfin/d49dbfd965cba69b9ba20b07e05fdfb5 to your computer and use it in GitHub Desktop.
Save swagfin/d49dbfd965cba69b9ba20b07e05fdfb5 to your computer and use it in GitHub Desktop.
Install Kubernetes Cluster using Microk8s on Linux

Install Kubernetes Cluster using Microk8s on Linux

STEP 1 (Update and Upgrade the System)

sudo apt update
sudo apt upgrade

STEP 2 (Install MicroK8s)

sudo snap install microk8s --classic

STEP 3 (Enable important modules)

microk8s enable dns storage ingress

STEP 4 (Get Kube config file)

microk8s config > config
@swagfin
Copy link
Author

swagfin commented May 23, 2023

Incase snap is not installed, you can run

sudo apt install snapd

@swagfin
Copy link
Author

swagfin commented May 23, 2023

NOTE: snaps rely on certain Linux kernel features which are not available under containerized servers like those running under openvz.

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