1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Arch Linux(Manjaro)のminikubeをKVM2で起動する

Last updated at Posted at 2020-12-30

必要なパッケージのインストール

yay -S minikube kubectl docker-machine-driver-kvm2 libvirt qemu-headless ebtables



libvirtdを有効にする

sudo systemctl enable libvirtd.service
sudo usermod -a -G libvirt $(whoami)



libvirtのdefaultネットワークを有効にする

sudo virsh net-autostart default



minikubeがデフォルトでkvm2を使うようにする

minikube config set vm-driver kvm2




搭載メモリの1/4をminikubeに割り当てる


もしManjaroを使っているならfreeコマンドをデフォルトのfreeコマンドにする。

unalias free
MEMORY_FRACTION=4
minikube config set memory "$(($(free --mega | head -n2 | tail -n1 | cut -c15-27)/$MEMORY_FRACTION))"



起動して確認する

minikube start
kubectl cluster-info

Minikubeのdashboardを表示する

minikube dashboard
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?