Minikube

From John Freier
Jump to: navigation, search

Minikube is an application that sets up a local single node Kubernetes cluster.

Start Minikube

 minikube start

Stop Minikube

 minikube stop

Clean up Minikube

 minikube delete


Pull Local Images

Pull images from localhost podman

 eval $(minikube podman-env)


Pull images from localhost Docker

 eval $(minikube docker-env)

Also we need to set the ImagePullPolicy to Never in order to use local docker images.

To get an image inside minikube.

 minikube cache add [image-name]:[tag]

or this might work, haven't tried yet.

 minikube image load my_image

Dashboard

This starts up a dashboard to show all the different items.

 minikube dashboard

SSH

 minikube ssh

ip

 minikube ip

Ingress

You need to enable ingress.

 minikube addons enable ingress

To expose minikube to localhost

 minikube tunnel --cleanup

This will allow you to hit localhost:80 to reach the ingress controller.