[one-liner] Install minikube, kubectl and kustomize

Install kubernetes on ubuntu using one line of command

One-liner series: minikube, kubectl and kustomize

OSShell
Ubuntu 20.04 amd64Bash

Install minikube

source

As Binary

curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64

sudo install minikube-linux-amd64 /usr/local/bin/minikube && rm minikube-linux-amd64

As DEB

curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube_latest_amd64.deb

sudo dpkg -i minikube_latest_amd64.deb

Install kubectl

source

curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"

sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl

To download a specific version, replace the $(curl -L -s https://dl.k8s.io/release/stable.txt) portion of the command with the specific version. eg. v1.30.0: curl -LO https://dl.k8s.io/release/v1.30.0/bin/linux/amd64/kubectl

Install kustomize

source

curl -s "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh"  | bash

sudo install -o root -g root -m 0755 kustomize /usr/local/bin/kustomize

Setup command-line completion for minikube

source

sudo su root && minikube completion bash > /etc/bash_completion.d/minikube

Setup command-line completion for kubectl

source

sudo kubectl completion bash > /etc/bash_completion.d/kubectl

Setup command-line completion for kustomize

sudo kustomize completion bash > /etc/bash_completion.d/kustomize
Built with Hugo
Theme Stack designed by Jimmy