README.md 6.4 KB
Newer Older
T
Thomas Strömberg 已提交
1
# minikube
R
r2d4 已提交
2

M
Mohammad Asif Siddiqui 已提交
3 4 5 6 7 8 9 10 11
[![BuildStatus Widget]][BuildStatus Result]
[![GoReport Widget]][GoReport Status]

[BuildStatus Result]: https://travis-ci.org/kubernetes/minikube
[BuildStatus Widget]: https://travis-ci.org/kubernetes/minikube.svg?branch=master

[GoReport Status]: https://goreportcard.com/report/github.com/kubernetes/minikube
[GoReport Widget]: https://goreportcard.com/badge/github.com/kubernetes/minikube

12
<img src="https://github.com/kubernetes/minikube/raw/master/images/logo/logo.png" width="100">
R
r2d4 已提交
13

T
Thomas Strömberg 已提交
14
## What is minikube?
R
r2d4 已提交
15

16
minikube implements a local Kubernetes cluster on macOS, Linux, and Windows.
R
r2d4 已提交
17

T
Thomas Strömberg 已提交
18
![screenshot](/images/start.jpg)
19

T
Thomas Strömberg 已提交
20
Our [project goals](https://github.com/kubernetes/minikube/blob/master/docs/contributors/principles.md) are to enable fast local development and to support all Kubernetes features that fit. We hope you enjoy it!
21

T
Thomas Strömberg 已提交
22
## News
T
Thomas Stromberg 已提交
23

T
v1.0.0  
Thomas Strömberg 已提交
24
* 2019-03-27 - v1.0.0 released! [[download](https://github.com/kubernetes/minikube/releases/tag/v1.0.0)] [[release notes](https://github.com/kubernetes/minikube/blob/master/CHANGELOG.md#version-1000---2019-03-27)]
T
Thomas Strömberg 已提交
25
* 2019-03-06 - v0.35.0 released! [[download](https://github.com/kubernetes/minikube/releases/tag/v0.35.0)] [[release notes](https://github.com/kubernetes/minikube/blob/master/CHANGELOG.md#version-0350---2019-03-06)]
T
Thomas Strömberg 已提交
26
* 2019-02-16 - v0.34.1 released! [[download](https://github.com/kubernetes/minikube/releases/tag/v0.34.1)] [[release notes](https://github.com/kubernetes/minikube/blob/master/CHANGELOG.md#version-0341---2019-02-16)]
T
Thomas Stromberg 已提交
27

T
Thomas Strömberg 已提交
28
## Features
R
r2d4 已提交
29

T
Thomas Strömberg 已提交
30
minikube runs the official stable release of Kubernetes, with support for standard Kubernetes features like:
31

32
* [LoadBalancer](https://github.com/kubernetes/minikube/blob/master/docs/tunnel.md) - using `minikube tunnel`
33 34
* Multi-cluster - using `minikube start -p <name>`
* NodePorts - using `minikube service`
T
Thomas Strömberg 已提交
35
* [Persistent Volumes](https://github.com/kubernetes/minikube/blob/master/docs/persistent_volumes.md)
36
* Ingress
T
Thomas Strömberg 已提交
37
* RBAC
T
Thomas Strömberg 已提交
38
* Dashboard - `minikube dashboard`
39
* [Container runtimes](https://github.com/kubernetes/minikube/blob/master/docs/alternative_runtimes.md) - `start --container-runtime`
Y
Yoan Blanc 已提交
40
* [Configure apiserver and kubelet options](https://github.com/kubernetes/minikube/blob/master/docs/configuring_kubernetes.md) via command-line flags
R
r2d4 已提交
41

42
As well as developer-friendly features:
A
Anthony Wesley 已提交
43

T
Thomas Strömberg 已提交
44 45 46
* [Addons](https://github.com/kubernetes/minikube/blob/master/docs/addons.md) - a marketplace for developers to share configurations for running services on minikube
* [GPU support](https://github.com/kubernetes/minikube/blob/master/docs/gpu.md) - for machine learning
* [Filesystem mounts](https://github.com/kubernetes/minikube/blob/master/docs/host_folder_mount.md)
47
* Automatic failure analysis
48

49 50 51 52 53 54 55
## Documentation

* [**Installation**](https://kubernetes.io/docs/tasks/tools/install-minikube/)
* [Advanced Topics and Tutorials](https://github.com/kubernetes/minikube/blob/master/docs/README.md)
* [Contributors Guide](https://github.com/kubernetes/minikube/blob/master/docs/contributors/README.md)

## Community
56

T
Thomas Strömberg 已提交
57 58
![Help Wanted!](/images/help_wanted.jpg)

59
minikube is a Kubernetes [#sig-cluster-lifecycle](https://github.com/kubernetes/community/tree/master/sig-cluster-lifecycle)  project.
60

T
Thomas Strömberg 已提交
61
* [**#minikube on Kubernetes Slack**](https://kubernetes.slack.com) - Live chat with minikube developers!
T
Thomas Strömberg 已提交
62 63
* [minikube-users mailing list](https://groups.google.com/forum/#!forum/minikube-users)
* [minikube-dev mailing list](https://groups.google.com/forum/#!forum/minikube-dev)
64 65
* [Bi-weekly office hours, Mondays @ 10am PST](https://tinyurl.com/minikube-oh)

T
Thomas Strömberg 已提交
66
* [Contributing](https://github.com/kubernetes/minikube/blob/master/CONTRIBUTING.md)
67
* [Development Roadmap](https://github.com/kubernetes/minikube/blob/master/docs/contributors/roadmap.md)
N
Nikolay Kolev 已提交
68

T
Thomas Strömberg 已提交
69
## Installation
R
r2d4 已提交
70

71
See the [installation guide](https://kubernetes.io/docs/tasks/tools/install-minikube/). For the impatient, here is the TL;DR:
N
Nikolay Kolev 已提交
72

73
* *macOS 10.12 (Sierra)*
T
Thomas Strömberg 已提交
74
  * Requires installing a hypervisor, such as [hyperkit](https://github.com/kubernetes/minikube/blob/master/docs/drivers.md#hyperkit-driver) (recommended) or VirtualBox
75 76
  * using [brew](https://brew.sh/): `brew cask install minikube`
  * manually: `curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-darwin-amd64 && sudo install minikube-darwin-amd64 /usr/local/bin/minikube`
N
Nikolay Kolev 已提交
77

78
* *Windows 10*
79 80
  * Requires a hypervisor, such as VirtualBox (recommended) or HyperV
  * VT-x/AMD-v virtualization must be enabled in BIOS
81
  * using [chocolatey](https://chocolatey.org/) `choco install minikube`
82
  * manually: Download and run the [installer](https://storage.googleapis.com/minikube/releases/latest/minikube-installer.exe)
R
r2d4 已提交
83

84
* *Linux*
85 86
  * Requires either the [kvm2 driver](https://github.com/kubernetes/minikube/blob/master/docs/drivers.md#kvm2-driver) (recommended), or VirtualBox
  * VT-x/AMD-v virtualization must be enabled in BIOS
87
  * manually:  `curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 && sudo install minikube-linux-amd64 /usr/local/bin/minikube`
R
r2d4 已提交
88

T
Thomas Strömberg 已提交
89
### Supported Hypervisors
R
r2d4 已提交
90

T
Thomas Strömberg 已提交
91
`minikube start` defaults to virtualbox, but supports other drivers using the `--vm-driver` argument:
R
r2d4 已提交
92

T
Thomas Strömberg 已提交
93 94 95
* [KVM2](https://github.com/kubernetes/minikube/blob/master/docs/drivers.md#kvm2-driver) - Recommended Linux driver
* [hyperkit](https://github.com/kubernetes/minikube/blob/master/docs/drivers.md#hyperkit-driver) - Recommended macOS driver
* virtualbox - Recommended Windows driver
T
Thomas Strömberg 已提交
96
* [none](https://github.com/kubernetes/minikube/blob/master/docs/vmdriver-none.md) - bare-metal execution on Linux, at the expense of system security and reliability
R
r2d4 已提交
97

98
Other drivers which are not yet part of our continuous integration system are:
R
r2d4 已提交
99

T
Thomas Strömberg 已提交
100
* [hyperv](https://github.com/kubernetes/minikube/blob/master/docs/drivers.md#hyperV-driver)
T
Thomas Strömberg 已提交
101
* [vmware](https://github.com/kubernetes/minikube/blob/master/docs/drivers.md#vmware-unified-driver)
R
r2d4 已提交
102

T
Thomas Strömberg 已提交
103
## Quick Start
R
r2d4 已提交
104

T
Thomas Strömberg 已提交
105
Start a cluster by running:
R
r2d4 已提交
106

107
`minikube start`
R
r2d4 已提交
108

T
Thomas Strömberg 已提交
109
Once started, you can interact with your cluster using `kubectl`, just like any other Kubernetes cluster. For instance, starting a server:
R
r2d4 已提交
110

T
Thomas Strömberg 已提交
111
`kubectl run hello-minikube --image=k8s.gcr.io/echoserver:1.4 --port=8080`
R
r2d4 已提交
112

T
Thomas Strömberg 已提交
113
Exposing a service as a NodePort
R
r2d4 已提交
114

T
Thomas Strömberg 已提交
115
`kubectl expose deployment hello-minikube --type=NodePort`
R
r2d4 已提交
116

T
Thomas Strömberg 已提交
117
minikube makes it easy to open this exposed endpoint in your browser:
R
r2d4 已提交
118

T
Thomas Strömberg 已提交
119
`minikube service hello-minikube`
R
r2d4 已提交
120

T
Thomas Strömberg 已提交
121
Start a second local cluster:
R
r2d4 已提交
122

T
Thomas Strömberg 已提交
123
`minikube start -p cluster2`
N
Nikolay Kolev 已提交
124

T
Thomas Strömberg 已提交
125 126 127
Stop your local cluster:

`minikube stop`
R
r2d4 已提交
128

T
Thomas Strömberg 已提交
129
Delete your local cluster:
R
r2d4 已提交
130

T
Thomas Strömberg 已提交
131
`minikube delete`