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

48 lines
956 B
Markdown
Raw Normal View History

2020-03-31 04:35:07 +00:00
---
title: "Deploying apps"
weight: 2
description: >
How to deploy an application to minikube
aliases:
- /docs/tasks/addons
2020-04-11 00:38:09 +00:00
- /Handbook/addons
2020-03-31 04:35:07 +00:00
---
## kubectl
2020-12-01 20:09:16 +00:00
```shell
2020-03-31 04:35:07 +00:00
kubectl create deployment hello-minikube1 --image=k8s.gcr.io/echoserver:1.4
kubectl expose deployment hello-minikube1 --type=LoadBalancer --port=8080
```
## Addons
minikube has a built-in list of applications and services that may be easily deployed, such as Istio or Ingress. To list the available addons for your version of minikube:
```shell
minikube addons list
```
To enable an add-on, see:
```shell
minikube addons enable <name>
```
To enable an addon at start-up, where *--addons* option can be specified multiple times:
2020-03-31 04:35:07 +00:00
```shell
minikube start --addons <name1> --addons <name2>
2020-03-31 04:35:07 +00:00
```
For addons that expose a browser endpoint, you can quickly open them with:
```shell
minikube addons open <name>
```
To disable an addon:
```shell
minikube addons disable <name>
```