Minikube: easily run Kubernetes locally
Editor's note: This is the first post in a
While Kubernetes is one of the best tools for managing containerized applications available today, and has been production-ready for over a year, Kubernetes has been missing a great local development platform.
For the past several months, several of us from the Kubernetes community have been working to fix this in the
Thanks to lots of help from members of the community, we're proud to announce the official release of Minikube. This release comes with support for
Using Minikube Minikube ships as a standalone Go binary, so installing it is as simple as downloading Minikube and putting it on your path: Minikube currently requires that you have VirtualBox installed, which you can download here. _(This is for Mac, for Linux substitute “minikube-darwin-amd64” with “minikube-linux-amd64”)curl -Lo minikube To start a Kubernetes cluster in Minikube, use the At this point, you have a running single-node Kubernetes cluster on your laptop! Minikube also configures Minikube creates a Host-Only network interface that routes to your node. To interact with running pods or services, you should send traffic over this address. To find out this address, you can use the Minikube also comes with the Kubernetes Dashboard. To open this up in your browser, you can use the built-in In general, Minikube supports everything you would expect from a Kubernetes cluster. You can use Since Minikube is running locally instead of on a cloud provider, certain provider-specific features like LoadBalancers and PersistentVolumes will not work out-of-the-box. However, you can use NodePort LoadBalancers and HostPath PersistentVolumes. Architecture Minikube is built on top of Docker's
Upcoming Features Minikube has been a lot of fun to work on so far, and we're always looking to improve Minikube to make the Kubernetes development experience better. If you have any ideas for features, don't hesitate to let us know in the . Here's a list of some of the things we're hoping to add to Minikube soon: Community We'd love to hear feedback on Minikube. To join the community: Please give Minikube a try, and let us know how it goes! --Dan Lorenc, Software Engineer, Googleminikube start
command:$ minikube start
Starting local Kubernetes cluster...
Kubernetes is available at https://192.168.99.100:443
Kubectl is now configured to use the cluster
kubectl
for you, so you're also ready to run containers with no changes.minikube ip
command:minikube dashboard
command:kubectl exec
to get a bash shell inside a pod in your cluster. You can use the kubectl port-forward
and kubectl proxy
commands to forward traffic from localhost to a pod or the API server.