Skip to content

Latest commit

 

History

History
160 lines (111 loc) · 2.7 KB

minikube.md

File metadata and controls

160 lines (111 loc) · 2.7 KB

Contents

Install minikube

Get the latest release for your operating system https://github.com/kubernetes/minikube/releases

Configuration

Get list of keys

minikube config

View current config keys and values

minikube config view

Get config key value

minikube config get driver

Set config key a new value

minikube config set driver docker

Usage

Create cluster and start

To create and start earlier created cluster Run

minikube start --driver=docker --nodes=1

Cluster will be automatically added to your kubectl config as a default context

Get status of cluset

minikube status

Stop cluster

minikube stop

Addons

List available addons

minikube addons list

Install addon

minikube addons enable metrics-server

Dashboard addon

Create and run dashboard

minikube dashboard

Network and connection

Connect via service

List available services in namespace default

minikube service list -n default

Connect service service-name to localhost port

minikube service -n default service-name

Connect using tunnel

You can create tunnel to a minikube service. Service should be only loadBalancer type

List available services in namespace default

minikube tunnel list -n default

Connect

minikube tunnel -n default

Add nodes to minikube cluster

Before adding be aware of:

minikube node add

Cleanup

# Stop cluster nodes
minikube stop

# Delete nodes resources
minikube delete
# or
docker rm minikube
docker rm minikube-m02
docker network prune
docker volume prune

# Delete local config and keys
rm -rf ~/.minikube/