Difference between revisions of "Minikube"
From John Freier
(4 intermediate revisions by the same user not shown) | |||
Line 19: | Line 19: | ||
Pull images from localhost Docker | Pull images from localhost Docker | ||
eval $(minikube docker-env) | eval $(minikube docker-env) | ||
− | |||
Also we need to set the ImagePullPolicy to Never in order to use local docker images. | 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. |
Latest revision as of 16:33, 12 April 2022
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.