Installation

Use the nano editor to open the /boot/firmware/cmdline.txt file.

sudo nano /boot/firmware/cmdline.txt

Opening the cmdline.txt file Enter the following flags at the end of the first line:

cgroup_memory=1 cgroup_enable=memory

Then reboot

Installation

sudo apt install snapd -y
sudo snap install microk8s --classic
sudo usermod -a -G microk8s $USER
mkdir -p ~/.kube
chmod 0700 ~/.kube
su - $USER

Deploying

microk8s start
microk8s enable dashboard
#create token
microk8s kubectl create token default
#start the dashboard
microk8s kubectl --address 0.0.0.0 port-forward -n kube-system service/kubernetes-dashboard 10443:443


Revision #1
Created 29 December 2024 08:13:16 by Admin
Updated 29 December 2024 08:19:58 by Admin