mirror of https://github.com/dapr/docs.git
1.9 KiB
1.9 KiB
Set up a Minikube cluster
Prerequisites
Note: For Windows, enable Virtualization in BIOS and install Hyper-V
Start the Minikube cluster
- (optional) Set the default VM driver
minikube config set vm-driver [driver_name]
Note: See DRIVERS for details on supported drivers and how to install plugins.
- Start the cluster
Use 1.13.x or newer version of Kubernetes with
--kubernetes-version
minikube start --cpus=4 --memory=4096 --kubernetes-version=1.14.6 --extra-config=apiserver.authorization-mode=RBAC
- Enable dashboard and ingress addons
# Enable dashboard
minikube addons enable dashboard
# Enable ingress
minikube addons enable ingress
(optional) Install Helm and deploy Tiller
-
Create the Tiller service account
kubectl create serviceaccount -n kube-system tiller
kubectl create clusterrolebinding tiller-cluster-rule --clusterrole=cluster-admin --serviceaccount=kube-system:tiller
- Install Tiller to the minikube
helm init --service-account tiller --history-max 200
- Ensure that Tiller is deployed and running
kubectl get pods -n kube-system
Troubleshooting
If Tiller is not running properly, get the logs from tiller-deploy deployment to understand the problem:
kubectl describe deployment tiller-deploy --namespace kube-system