Skip to content

Instantly share code, notes, and snippets.

@RichardDally
Created January 5, 2023 13:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RichardDally/60d928326324e49bf990a5230a2eb233 to your computer and use it in GitHub Desktop.
Save RichardDally/60d928326324e49bf990a5230a2eb233 to your computer and use it in GitHub Desktop.
Minikube Ubuntu

Minikube on Ubuntu

Install kubectl

  • 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

Install Minikube

  • curl -Lo minikube https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 && chmod 700 minikube
  • sudo mv minikube /usr/local/bin/

Install Docker

  • sudo apt-get remove docker docker-engine docker.io containerd runc

Start Minikube

Enable Rootless Docker

  • dockerd-rootless-setuptool.sh install -f
  • docker context use rootless

Enable delegation

  • sudo emacs /etc/systemd/system/user@.service.d/delegate.conf

  • [Service]
    Delegate=cpu cpuset io memory pids
    EOF
    
  • minikube start --driver=docker --container-runtime=containerd

Configure Minikube with podman Rootless (didn't work)

  • minikube config set rootless true
  • minikube start --driver=podman --container-runtime=containerd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment