Skip to content

Instantly share code, notes, and snippets.

@joelanford
Last active May 6, 2020 19:46
Show Gist options
  • Save joelanford/d4ff12892d6594bf2779e198e012ee5a to your computer and use it in GitHub Desktop.
Save joelanford/d4ff12892d6594bf2779e198e012ee5a to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
DEFAULT_VERSION="v1.18.2"
if [[ -z "$KUBERNETES_VERSION" ]]; then
echo "KUBERNETES_VERSION not set. Using '$DEFAULT_VERSION'."
fi
KUBERNETES_VERSION="${KUBERNETES_VERSION:-$DEFAULT_VERSION}"
export MINIKUBE_IN_STYLE=false
export CHANGE_MINIKUBE_NONE_USER=true
minikube delete
rm -rf /tmp/juju-*
sudo -E minikube start --driver=none \
--kubernetes-version=$KUBERNETES_VERSION \
--apiserver-ips 127.0.0.1 \
--apiserver-names localhost \
--extra-config="kubeadm.ignore-preflight-errors=SystemVerification"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment