Luness Asia

Installing Minikube on Linux Mint 22.2 ‘Zara’

Recently I just repurposed two old laptops and install Linux Mint 22.2 on them. My main goals for these old laptops are 1) As my HomeLab so I can test out different software and configuration to pick up new tech skills , 2) Setup home networking and turn one of them as Kubernetes Cluster for up coming AI projects.

I will document the journey of this project in a series of blog posts to share with you and future me what have I done wrong and right while roasting coffee bean on my deck.

First, I got two laptops laying around my house that I have stop using for many years. And last weekend I decided to repurpose them for my personal learning projects.

Pre-requisites :

  1. Old laptop
  2. USB drive (at least 8 GBs)
  3. Another Windows another desktop/laptop (to create booatable USB drive)

I follow the steps below to install Linux Mint 22.2 onto the old laptop.

  1. Restart the laptop and boot into the BIOS and reconfigure the boot sequence to USB first.
  2. Downloaded Linux Mint 22.2 form https://linuxmint.com/download.php.
  3. Download Rufus from https://rufus.ie/en/ and “burn” Linux Mint 22.2 to a USB drive.
  4. Plug in the USB drive onto the laptop and restart the laptop.
  5. Wait till the “Mint Live Operating System” fully load, click on the “Install Mint Linux” icon. This will start the installation process.

The following steps are how to install and start up Minikube on Lint Mint”

  1. Install Docker
  2. Install Minikube
    • Open a terminate and run the following commands to install Minikube
      • curl -LO https://github.com/kubernetes/minikube/releases/latest/download/minikube-linux-amd64
      • sudo install minikube-linux-amd64 /usr/local/bin/minikube && rm minikube-linux-amd64
  3. Ran into the following error
  4. Run the following command to resolve the error:
    • sudo usermod -aG docker $USER && newgrp docker
  5. Install “kubectl” from https://kubernetes.io/docs/tasks/tools/install-kubectl-linux/
    • In this my case, I will be using curl command as below:
    • curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"

I get the following error while I try to create a “deployment”:

kubectl create deployment nginx-depl --image=nginx
error: failed to create deployment: Post "http://localhost:8080/apis/apps/v1/namespaces/default/deployments?fieldManager=kubectl-create&fieldValidation=Strict": dial tcp 127.0.0.1:8080: connect: connection refused

This is because I stopped minikube.

After restarted minikube, I was able to successfully create a deployment.

Exit mobile version