This is a guide for installing Minikube on Mac M1 Silicon laptop. Prerequisite is that you have Docker installed already.
Reference: https://kubernetes.io/docs/tasks/tools/install-kubectl-macos/
INSTALL KUBECTL:
# download kubectl Veneraldos-MacBook-Pro-2 ~ % curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/darwin/arm64/kubectl" # download sha256 hash Veneraldos-MacBook-Pro-2 ~ % curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/darwin/arm64/kubectl.sha256" # verify the downloaded kubectl file Veneraldos-MacBook-Pro-2 ~ % echo "$(cat kubectl.sha256) kubectl" | shasum -a 256 --check # make the file executable Veneraldos-MacBook-Pro-2 ~ % chmod +x ./kubectl # move the file to local bin folder Veneraldos-MacBook-Pro-2 ~ % sudo mv ./kubectl /usr/local/bin/kubectl # if the local bin folder does not exist yet, create the directory Veneraldos-MacBook-Pro-2 ~ % sudo mkdir -p -m 775 /usr/local/bin # change to root owner Veneraldos-MacBook-Pro-2 ~ % sudo chown root: /usr/local/bin/kubectl # make sure that the /usr/local/bin is part of the path # create and/or edit ~/.zshrc and put the following entries: Veneraldos-MacBook-Pro-2 ~ % cat .zshrc export PATH=$PATH:/usr/local/bin autoload -Uz compinit compinit # source the file Veneraldos-MacBook-Pro-2 ~ % source .zshrc Veneraldos-MacBook-Pro-2 ~ % source <(kubectl completion zsh) # check version Veneraldos-MacBook-Pro-2 ~ % kubectl version Or Veneraldos-MacBook-Pro-2 ~ % kubectl version --client --output=yaml clientVersion: buildDate: "2022-04-14T08:49:13Z" compiler: gc gitCommit: ad3338546da947756e8a88aa6822e9c11e7eac22 gitTreeState: clean gitVersion: v1.23.6 goVersion: go1.17.9 major: "1" minor: "23" platform: darwin/arm64
INSTALL MINIKUBE:
# download Minikube Veneraldos-MacBook-Pro-2 ~ % curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-darwin-arm64 # install in local bin directory Veneraldos-MacBook-Pro-2 ~ % sudo install minikube-darwin-arm64 /usr/local/bin/minikube # configure and start Minikube Veneraldos-MacBook-Pro-2 ~ % minikube config set driver docker Veneraldos-MacBook-Pro-2 ~ % minikube start --driver=docker
TEST
INSTALL HELM
Veneraldos-MacBook-Pro-2 ~ % brew install helm Running `brew update --preinstall`... ==> Auto-updated Homebrew! Updated 1 tap (homebrew/core). ==> New Formulae age-plugin-yubikey freebayes mkfontscale sse2neon arxiv_latex_cleaner libxfont2 monika tygo cpi minimap2 quran virt-manager ==> Updated Formulae Updated 177 formulae. ==> Downloading https://ghcr.io/v2/homebrew/core/helm/manifests/3.8.2 ######################################################################## 100.0% ==> Downloading https://ghcr.io/v2/homebrew/core/helm/blobs/sha256:78901162559cfde0d695e74c82e78a8f37f7d0cf9a2a0 ==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:78901162559cfde0d695e74c82e ######################################################################## 100.0% ==> Pouring helm--3.8.2.arm64_monterey.bottle.tar.gz ==> Caveats zsh completions have been installed to: /opt/homebrew/share/zsh/site-functions ==> Summary 🍺 /opt/homebrew/Cellar/helm/3.8.2: 64 files, 46.1MB ==> Running `brew cleanup helm`... Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP. Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).