Deploying apps

How to deploy an application to minikube

kubectl

  1. kubectl create deployment hello-minikube1 --image=k8s.gcr.io/echoserver:1.4
  2. 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:

  1. minikube addons list

To enable an add-on, see:

  1. minikube addons enable <name>

To enable an addon at start-up, where –addons option can be specified multiple times:

  1. minikube start --addons <name1> --addons <name2>

For addons that expose a browser endpoint, you can quickly open them with:

  1. minikube addons open <name>

To disable an addon:

  1. minikube addons disable <name>

Last modified November 14, 2020: Fix whitespace issues in the site content markdown (ebf37ad15)