cat <<EOF > /etc/yum.repos.d/kubernetes.repo
[kubernetes]
name=Kubernetes
baseurl=https://packages.cloud.google.com/yum/repos/kubernetes-el7-x86_64
enabled=1
gpgcheck=1
repo_gpgcheck=1
gpgkey=https://packages.cloud.google.com/yum/doc/yum-key.gpg https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg
EOF

 proxychains4 yum install kubectl


https://github.com/kubernetes/minikube/releases

 proxychains4 curl -Lo minikube https://storage.googleapis.com/minikube/releases/v0.26.1/minikube-linux-amd64 && chmod +x minikube && sudo mv minikube /usr/local/bin/


安装虚拟化driver
https://github.com/kubernetes/minikube/blob/master/docs/drivers.md#kvm-driver
yum install libvirt-daemon-kvm qemu-kvm
usermod -a -G libvirt $(whoami)

 proxychains4 curl -LO https://storage.googleapis.com/minikube/releases/latest/docker-machine-driver-kvm2 && chmod +x docker-machine-driver-kvm2 && sudo mv docker-machine-driver-kvm2 /usr/local/bin/



安装kvm(vmware 虚拟机设置 处理器 勾上三个√)
yum install qemu-kvm qemu-img virt-manager libvirt libvirt-python python-virtinst libvirt-client virt-install virt-viewer

# lsmod |grep kvm
kvm_intel 170181 0
kvm 554609 1 kvm_intel
irqbypass 13503 1 kvm

 

systemctl start libvirtd

systemctl enable libvirtd

modprobe kvm
modprobe kvm_intel

# minikube start --docker-env http_proxy=http://192.168.86.128:7070 --docker-env https_proxy=http://192.168.86.128:7070 --vm-driver kvm
Starting local Kubernetes v1.10.0 cluster...
Starting VM...
E0516 07:52:56.076597 4055 start.go:159] Error starting host: Error getting state for host: getting connection: looking up domain: virError(Code=42, Domain=10, Message='未找到域: 没有与名称 'minikube' 匹配的域').