在manjaro上搭建minikube测试环境
安装 minikube
- 安装依赖
sudo pacman -Sy libvirt qemu ebtables dnsmasq
sudo usermod -a -G libvirt $(whoami)
newgrp libvirt
sudo systemctl start libvirtd.service
sudo systemctl enable libvirtd.service
sudo systemctl start virtlogd.service
sudo systemctl enable virtlogd.service
- 装docker和kvm2 驱动
sudo pacman -Sy docker-machine
yaourt -Sy docker-machine-driver-kvm2
- 装minikube
yay -Sy minikube kubectl-bin
minikube version
whereis kubectl
kubectl -h
- 装环境
注意关掉 vpn
minikube start --vm-driver kvm2 --registry-mirror=https://dockerhub.azk8s.cn --image-repository=registry.cn-hangzhou.aliyuncs.com/google_containers
minikube status
kubectl cluster-info
kubectl get nodes
参考
https://www.howtoforge.com/learning-kubernetes-locally-via-minikube-on-linux-manjaro-archlinux/