kubectl (comes with the
kubernetes package) are already available in Fedora.
However, you will still need to obtain
docker-machine-driver-kvm2 from the
Github repository. The installation instructions recommend that you
download the binary and copy it to
/usr/local/bin, but many would prefer not to use a binary blob obtained
from the Internet and compile from source instead.
Fortunately, it is quite simple. First, install
libvirt-devel. Then use the following script:
#!/bin/bash set -xe export GOPATH=$(go env GOPATH) export GOBIN=$GOPATH/bin # go get will not work here, minikube expects to have a certain directory structure if [[ ! -d "$GOPATH/src/k8s.io/minikube" ]]; then git clone https://github.com/kubernetes/minikube.git $GOPATH/src/k8s.io/minikube fi cd $GOPATH/src/k8s.io/minikube git checkout -- . git checkout $(git describe --abbrev=0 --tags) make clean make && make docker-machine-driver-kvm2 cp out/minikube $GOBIN cp out/docker-machine-driver-kvm2 $GOBIN
Then simply add
$GOBIN to your path.
/usr/local/binand there is one that builds from source, but has questionable quality.