Minikube is the tool that allows you to launch K8S locally. Minikubes runs as a single-node-k8s-cluster inside a VM at your local, before you install kubectl do as below
# Install minikube on Ubuntu # setup minikube using the script here -
https://github.com/punitporwal07/minikube/blob/master/install-minikube-v2.sh
# Install minikube on Linux
# use this script to launch k8s-cluster on local and interact with Minikube install-minikube.sh
$ git clone https://github.com/punitporwal07/minikube.git $ cd minikube
$ chmod +x install-minikube.sh Now add your localuser as sudo-user, with root do the following - $ vi /etc/sudoers next to root ALL=(ALL) add as below for your user
localuser ALL=(ALL) NOPASSWD:ALL
$ su - localuser $ ./install-minikube.sh
| Function | Command |
|---|---|
| verify kubectl to talk to the cluster | kubectl config current-context ( should return minikube) |
| to start/stop cluster with resources | minikube start/stop |
| to delete note | minikube delete |
| start version-specific Kube node | minikube start --vm-driver=none --kubernetes-version="v1.20.0" |
| check node info | kubectl get nodes |
| kubernetes cluster-info | kubectl cluster-info |
| kubectl binary for Windows | kubectl.exe |
| minikube 64-bit installer | minikube-installer.exe |
No comments:
Post a Comment