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

M
Mohammad Asif Siddiqui 已提交
3 4 5
[![BuildStatus Widget]][BuildStatus Result]
[![GoReport Widget]][GoReport Status]

6
[BuildStatus Result]: https://travis-ci.org/kubernetes/minikube
M
Mohammad Asif Siddiqui 已提交
7 8 9 10 11
[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

T
Thomas Strömberg 已提交
26
* 2019-06-24 - v1.2.0 released! [[download](https://github.com/kubernetes/minikube/releases/tag/v1.2.0)] [[release notes](https://github.com/kubernetes/minikube/blob/master/CHANGELOG.md#version-120---2019-06-24)]
27
* 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 已提交
28
* 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 Stromberg 已提交
29

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

T
Thomas Strömberg 已提交
102
* [hyperv](https://github.com/kubernetes/minikube/blob/master/docs/drivers.md#hyperV-driver)
T
Thomas Strömberg 已提交
103
* [vmware](https://github.com/kubernetes/minikube/blob/master/docs/drivers.md#vmware-unified-driver)
104
* [parallels](https://github.com/kubernetes/minikube/blob/master/docs/drivers.md#parallels-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`