README.md 6.9 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
minikube's [primary goals](https://github.com/kubernetes/minikube/blob/master/docs/contributors/principles.md) are to be the best tool for local Kubernetes application 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
Thomas Strömberg 已提交
24
:mega: **Please fill out our [fast 5-question survey](https://forms.gle/Gg3hG5ZySw8c1C24A)** so that we can learn how & why you use minikube, and what improvements we should make. Thank you! :dancers:
T
Thomas Strömberg 已提交
25

26
* 2019-06-07 - v1.1.1 released! [[download](https://github.com/kubernetes/minikube/releases/tag/v1.1.1)] [[release notes](https://github.com/kubernetes/minikube/blob/master/CHANGELOG.md#version-111---2019-06-07)]
T
Thomas Strömberg 已提交
27
* 2019-05-21 - v1.1.0 released! [[download](https://github.com/kubernetes/minikube/releases/tag/v1.1.0)] [[release notes](https://github.com/kubernetes/minikube/blob/master/CHANGELOG.md#version-110---2019-05-21)]
T
Thomas Strömberg 已提交
28
* 2019-04-29 - v1.0.1 released! [[download](https://github.com/kubernetes/minikube/releases/tag/v1.0.1)] [[release notes](https://github.com/kubernetes/minikube/blob/master/CHANGELOG.md#version-101---2019-04-29)]
T
v1.0.0  
Thomas Strömberg 已提交
29
* 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 Stromberg 已提交
30

T
Thomas Strömberg 已提交
31
## Features
R
r2d4 已提交
32

T
Thomas Strömberg 已提交
33
minikube runs the latest stable release of Kubernetes, with support for standard Kubernetes features like:
34

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

45
As well as developer-friendly features:
A
Anthony Wesley 已提交
46

T
Thomas Strömberg 已提交
47 48 49
* [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)
50
* Automatic failure analysis
51

52 53 54 55 56 57 58
## 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
59

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

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

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

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

T
Thomas Strömberg 已提交
72
## Installation
R
r2d4 已提交
73

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

76
* *macOS 10.12 (Sierra)*
T
Thomas Strömberg 已提交
77
  * Requires installing a hypervisor, such as [hyperkit](https://github.com/kubernetes/minikube/blob/master/docs/drivers.md#hyperkit-driver) (recommended) or VirtualBox
78 79
  * 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 已提交
80

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

87
* *Linux*
88 89
  * 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
90
  * manually:  `curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 && sudo install minikube-linux-amd64 /usr/local/bin/minikube`
R
r2d4 已提交
91

T
Thomas Strömberg 已提交
92
### Supported Hypervisors
R
r2d4 已提交
93

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

T
Thomas Strömberg 已提交
96 97 98
* [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 已提交
99
* [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 已提交
100

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

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

T
Thomas Strömberg 已提交
106
## Quick Start
R
r2d4 已提交
107

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

110
`minikube start`
R
r2d4 已提交
111

A
AbdullahBM 已提交
112
Access Kubernetes Dashboard within Minikube:
113 114 115

`minikube dashboard`

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

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

T
Thomas Strömberg 已提交
120
Exposing a service as a NodePort
R
r2d4 已提交
121

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

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

T
Thomas Strömberg 已提交
126
`minikube service hello-minikube`
R
r2d4 已提交
127

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

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

T
Thomas Strömberg 已提交
132 133 134
Stop your local cluster:

`minikube stop`
R
r2d4 已提交
135

T
Thomas Strömberg 已提交
136
Delete your local cluster:
R
r2d4 已提交
137

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