minikube/README.md

59 lines
1.9 KiB
Markdown
Raw Normal View History

2016-04-25 17:01:43 +00:00
# Minikube
2016-04-15 22:38:35 +00:00
Run Kubernetes locally
2016-04-19 18:45:58 +00:00
2016-04-25 17:29:07 +00:00
[![Build Status](https://travis-ci.org/kubernetes/minikube.svg?branch=master)](https://travis-ci.org/kubernetes/minikube)
2016-04-25 17:01:43 +00:00
## Background
Minikube is a tool that makes it easy to run Kubernetes locally. Minikube runs
a single-node Kubernetes cluster inside a VM on your laptop for users looking
to try out Kubernetes or develop with it day-to-day.
## Design
Minikube uses [libmachine](https://github.com/docker/machine/tree/master/libmachine) for provisioning VMs, and [localkube](https://github.com/redspread/localkube)
for running the cluster.
For more information about minikube, see the [proposal](https://github.com/kubernetes/kubernetes/blob/master/docs/proposals/local-cluster-ux.md).
## Goals
* Works across multiple OSes - OS X, Linux and Windows primarily.
* Single command setup and teardown UX.
* Unified UX across OSes
* Minimal dependencies on third party software.
* Minimal resource overhead.
* Replace any other alternatives to local cluster deployment.
## Non Goals
* Simplifying kubernetes production deployment experience. Kube-deploy is attempting to tackle this problem.
* Supporting all possible deployment configurations of Kubernetes like various types of storage, networking, etc.
2016-04-25 17:08:58 +00:00
2016-04-19 18:45:58 +00:00
## Build Instructions
go build cli/main.go
## Run Instructions
2016-04-25 17:08:58 +00:00
2016-04-19 18:45:58 +00:00
Start the cluster with:
./main start
Starting local Kubernetes cluster...
2016/04/19 11:41:26 Machine exists!
2016/04/19 11:41:27 Kubernetes is available at http://192.168.99.100:8080.
2016/04/19 11:41:27 Run this command to use the cluster:
2016-04-25 17:08:58 +00:00
2016/04/19 11:41:27 kubectl config set-cluster minikube --insecure-skip-tls-verify=true --server=http://192.168.99.100:8080
2016-04-19 18:45:58 +00:00
Access the cluster with:
First run the command from above:
2016-04-25 17:08:58 +00:00
kubectl config set-cluster minikube --insecure-skip-tls-verify=true --server=http://192.168.99.100:8080
2016-04-19 18:45:58 +00:00
Then use kubectl normally:
2016-04-25 17:08:58 +00:00
kubectl get pods --cluster=minikube