install kubernetes on debian sid

install distribution provided run-time-dependencies used by minikube:
apt-get install qemu-kvm libvirt-daemon-system virtualbox virtualbox-dkms
install minikube and dependencies:
curl -Lo minikube https://storage.googleapis.com/minikube/releases/v0.25.0/minikube-linux-amd64
chmod +x minikube
mv minikube /usr/local/bin/
latest="$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)"
curl -LO "https://storage.googleapis.com/kubernetes-release/release/${latest}/bin/darwin/amd64/kubectl"
chmod +x kubectl
mv kubectl /usr/local/bin/
# kvm only
curl -LO https://storage.googleapis.com/minikube/releases/latest/docker-machine-driver-kvm2
chmod +x docker-machine-driver-kvm2
mv docker-machine-driver-kvm2 /usr/local/bin/
perpare the system for minikube:
# add your <user> to the required groups
adduser <user> docker
adduser <user> kvm # kvm only
adduser <user> libvirt
adduser <user> libvirt-qemu
#logout (sufficient) or reboot (if you like windows)

# allow access to the default network
# TODO - FIXME ## kubctrl minikube virsh # net-autostart default
check the installation:
minikube start --vm-driver virtualbox # bring up the minikube
minikube start --vm-driver kvm2       # bring up the minikube (kvm only)
kubectl cluster-info                  # get info about the cluster
kubectl get nodes                     # show us the nodes

Links:

Leave a Reply

Your email address will not be published. Required fields are marked *