Skip to content

Instantly share code, notes, and snippets.

@marcelmaatkamp
Created June 27, 2021 08:33
Show Gist options
  • Save marcelmaatkamp/c91ae28d54f1036ca41835137b52c579 to your computer and use it in GitHub Desktop.
Save marcelmaatkamp/c91ae28d54f1036ca41835137b52c579 to your computer and use it in GitHub Desktop.
minikube
$ \
  curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 &&\
  sudo install minikube-linux-amd64 /usr/local/bin/minikube

$ # minikube via docker
$ # -------------------
$ \
  minikube start

$ # or (prefered way)

$ # minikube bare metal
$ # -------------------
$ \
  sudo -i env \
   CHANGE_MINIKUBE_NONE_USER=true \
   MINIKUBE_HOME=$HOME \
   KUBECONFIG=$HOME/.kube/config \
   MINIKUBE_NODE_IP=192.168.1.57 \
   /usr/local/bin/minikube \
    --extra-config kubelet.node-ip=${MINIKUBE_NODE_IP} \
    start --driver=none

$ # verify ip is host ip
$ \
  minikube ip

$ \
  sudo apt-get update &&\
  sudo apt-get install \
   kubectl &&\
  export KUBECONFIG=${HOME}/.kube/config

$ # disable sandbox (--devmode) so helm can access ${KUBECONFIG}
$ \
  sudo snap install helm3 --devmode &&\
  alias helm=helm3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment