One-liner series: minikube, kubectl and kustomize
OS | Shell |
---|---|
Ubuntu 20.04 amd64 | Bash |
Install minikube
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
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
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
sudo su root && minikube completion bash > /etc/bash_completion.d/minikube
Setup command-line completion for kubectl
sudo kubectl completion bash > /etc/bash_completion.d/kubectl
Setup command-line completion for kustomize
sudo kustomize completion bash > /etc/bash_completion.d/kustomize