1. Install YugabyteDB
Prerequisites
-
Minikube is installed on your localhost machine.
The Kubernetes version used by Minikube should be v1.18.0 or later. The default Kubernetes version being used by Minikube displays when you run the
minikube start
command. To install Minikube, see Install Minikube in the Kubernetes documentation. -
kubectl is installed.
To install
kubectl
, see Install kubectl in the Kubernetes documentation. -
Helm 3.4 or later is installed.
To install
helm
, see Install helm in the Helm documentation.
Start Kubernetes
-
Start Kubernetes using Minikube by running the following command. Note that minikube by default brings up a single-node Kubernetes environment with 2GB RAM, 2 CPUS, and a disk of 20GB. We recommend starting minkube with at least 8GB RAM, 4 CPUs and 40GB disk as shown below.
$ minikube start --memory=8192 --cpus=4 --disk-size=40g --vm-driver=virtualbox
... Configuring environment for Kubernetes v1.14.2 on Docker 18.09.6 ...
-
Review Kubernetes dashboard by running the following command.
$ minikube dashboard
-
Confirm that your kubectl is configured correctly by running the following command.
$ kubectl version
Client Version: version.Info{Major:"1", Minor:"14+", GitVersion:"v1.14.10-dispatcher", ...} Server Version: version.Info{Major:"1", Minor:"14", GitVersion:"v1.14.2", ...}
-
Confirm that your Helm is configured correctly by running the following command.
$ helm version
version.BuildInfo{Version:"v3.0.3", GitCommit:"...", GitTreeState:"clean", GoVersion:"go1.13.6"}
Download YugabyteDB Helm Chart
Add charts repository
To add the YugabyteDB charts repository, run the following command.
$ helm repo add yugabytedb https://charts.yugabyte.com
Fetch updates from the repository
Make sure that you have the latest updates to the repository by running the following command.
$ helm repo update
Validate the chart version
$ helm search repo yugabytedb/yugabyte
NAME CHART VERSION APP VERSION DESCRIPTION
yugabytedb/yugabyte 2.13.0 2.13.0.0-b42 YugabyteDB is the high-performance distributed ...
Now you are ready to create a local YugabyteDB cluster.
Next step
Create a local cluster