minikube/site/content/en/docs/handbook/controls.md

48 lines
1015 B
Markdown
Raw Normal View History

---
2020-03-31 04:35:07 +00:00
title: "Basic controls"
weight: 2
description: >
See minikube in action!
---
Start a cluster by running:
`minikube start`
2019-08-03 00:00:24 +00:00
Access the Kubernetes Dashboard running within the minikube cluster:
`minikube dashboard`
Once started, you can interact with your cluster using `kubectl`, just like any other Kubernetes cluster. For instance, starting a server:
`kubectl create deployment hello-minikube --image=k8s.gcr.io/echoserver:1.4`
Exposing a service as a NodePort
`kubectl expose deployment hello-minikube --type=NodePort --port=8080`
minikube makes it easy to open this exposed endpoint in your browser:
`minikube service hello-minikube`
Upgrade your cluster:
`minikube start --kubernetes-version=latest`
Start a second local cluster (_note: This will not work if minikube is using the bare-metal/none driver_):
`minikube start -p cluster2`
Stop your local cluster:
`minikube stop`
Delete your local cluster:
`minikube delete`
2019-10-17 18:16:06 +00:00
Delete all local clusters and profiles
`minikube delete --all`