Use Minikube to Configure a Kubernetes Cluster

Prerequisites

  • kubectl

  • minikube

Prepare local cluster

Start minikube with at least 8 GB of RAM.

$ minikube start --cpus 4 --memory 8192

Enable the ingress add-on.

$ minikube addons enable ingress

Add docker images into cluster from my local

If you will run a deployment with a docker image generated from your local into minikube, you need

To run a deployment with a docker image generated locally use the command eval $(minikube docker-env) beforehand to build the image into minikube.

Example:

eval $(minikube docker-env)

docker build -t stake-or-die/emprops-frontend:latest .

Reference Links
- [https://minikube.sigs.k8s.io/docs/start/](https://minikube.sigs.k8s.io/docs/start/)

Last updated