Skip to content

goavengers/go-kube

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 

Repository files navigation

Go Kubernetes and Minikube

Draft!

Installation steps

Install kubectl

Install Hypervisor

KVM

  • $ sudo apt install cpu-checker && sudo kvm-ok

    • OR $ grep -E '(vmx|svm)' /proc/cpuinfo
  • $ sudo kvm-ok

    Output:

    INFO: /dev/kvm exists
    KVM acceleration can be used
  • $ sudo apt install libvirt-clients libvirt-daemon-system qemu-kvm && sudo usermod -a -G libvirt $(whoami) && newgrp libvirt

  • $ sudo virt-host-validate

Install Minikube

  • $ curl -Lo minikube https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 && chmod x minikube
  • $ sudo mkdir -p /usr/local/bin/
  • $ sudo install minikube /usr/local/bin/

Check

  • $ minikube start --vm-driver=<driver_name>, where <driver-name> kvm2 or set one of list of drivers

  • $ minikube status

    Output:

    host: Running
    kubelet: Running
    apiserver: Running
    kubeconfig: Configured
  • $ minikube stop

Clear local state

  • $ minikube start
  • if previous step with error machine does not exist, then run $ minikube delete

Releases

No releases published

Packages

No packages published