📗
Everyday Cheat Sheets
  • README
  • Build
    • Architecture
      • API Management
        • Kong
      • Authentication
        • Keycloak
        • Okta
      • Cloud Native
      • Design Patterns
      • Design Principles
      • IaC
      • IoT
      • Message Broker
      • Methods
      • Networking
      • Payment
        • Stripe
      • Testing
    • Code lifecycle (ALM)
      • Automation Pipelines
        • Argo CD
        • CircleCI
        • Flux
        • Keptn
        • Travis
      • Azure DevOps
        • Azure Pipelines
      • Chef
      • GitHub
        • GitHub Actions
      • Nexus
      • Promyze
      • RunDeck
      • SaltStack
      • Sonar
      • Tuleap
    • Containers & Cloud Native
      • Argo Workflows
      • Containerization
        • Docker
          • Docker CLI
        • containerd
        • cri-o
      • CNAB
      • Dapr
      • Envoy
      • Fluentd
      • Knative
      • Kubernetes
        • Cluster API
        • etcd
        • Helm
        • k3d
        • kind
        • Kubectl
        • MetalLB
        • Minikube
      • Open Application Model (OAM)
      • Unleash
    • Data storage
      • MySQL
      • MongoDB
        • Atlas
        • Compass
        • Evergreen
        • MongoDB 4.2
        • MongoDB 5.0
        • MongoDB design
        • MongoDB events
        • MongoDB driver for .NET
        • Ops Manager
        • Realm
      • Oracle
      • Redis
      • SQL Server
      • PostgreSQL
    • Frameworks & libraries
      • Angular
        • Angular CLI
        • Angular events
      • .NET
        • ASP.NET Core
        • Blazor
        • .NET 5.0
        • .NET 6.0
        • .NET CLI
        • .NET Core
        • .NET Events
        • .NET Logging
        • .NET Testing
        • NuGet
        • WPF
        • Xamarin
      • gRPC
      • Ionic
      • Jekyll
      • Node.js
        • Express
        • NPM
      • React
        • React Native
      • Redux
    • IDE
      • Visual Studio 2022
    • Languages
      • C#
        • C# 8.0
      • ECMAScript
      • GraphQL
      • JavaScript
        • webpack
        • Yarn
      • MS-DOS
      • PHP
      • PowerShell
      • Python
      • Swagger
      • TypeScript
    • Messaging
      • Azure Service Bus
      • RabbitMQ
    • Testing
    • Workstation
      • QGIS
      • Visual Studio 2019
      • Windows 10
      • Windows Subsystem for Linux
  • Collaborate
    • Marp
    • Microsoft 365
      • Microsoft Graph
      • SharePoint Framework
        • Fluent UI
        • SharePoint Framework UI components
  • Run
    • Cloud computing
      • Alibaba
      • AWS
      • Azure
        • Azure AD
        • Azure CLI
        • Azure Container Registry
        • Azure Portal
        • Azure Service Bus
      • Firebase
      • OVH
    • Hardware
      • Single-board computers
        • Odroid
        • Raspberry Pi
    • Infrastructure automation
      • Azure Resource Manager
      • Packer
      • Pulumi
      • Puppet
      • Terraform
        • HCL
        • Terraform CLI
        • Terraform Providers
    • Networking
      • HAProxy
      • nginx
    • Observability
      • Grafana Labs
        • Grafana
        • Loki
        • Tempo
      • OpenTelemetry
      • Prometheus
      • Splunk
    • Security
      • Falco
    • Systems
      • Linux
        • CentOS
        • eBPF
        • Linux Kernel
        • Rocky
        • Ubuntu
      • Windows Server
    • Virtualization
      • Hyper-V
      • Vagrant
  • Optimize
    • DevOps
  • Join
    • Companies
      • HashiCorp
Powered by GitBook
On this page
  • Quick start
  • Installation
  • Run/stop
  • Dashboard
  • Kubernetes CLI
  • CLI reference
  • Clean-up
  • Extensions
  • Known issues

Was this helpful?

Export as PDF
  1. Build
  2. Containers & Cloud Native
  3. Kubernetes

Minikube

PreviousMetalLBNextOpen Application Model (OAM)

Last updated 4 years ago

Was this helpful?

Local Kubernetes, focused on application development & education

,

Quick start

Installation

Follow the instructions given in the .

More information on .

Make sure Docker Desktop has allocated at least 3 Go of RAM.

Run/stop

Important: If you're on Windows, open a command window as admin.

Run:

  • (Optional) minikube config set vm-driver hyperv to set the default driver (here )

  • minikube start to start the Kubernetes node

  • minikube status to get the overall status

  • minikube pause to pause it

  • minikube stop to stop it

Dashboard

Run minikube dashboard to open the web dashboard.

Kubernetes CLI

Run kubectl config use-context minikube to be able to use kubectl on your local Kubernetes instance.

CLI reference

Command

Action

minikube service hello-minikube

Maunch a web browser on a service

minikube service xxx --url

Display url for a given service (xxx)

minikube config set memory 16384

Update default memory limit (2048 by default)

minikube addons list

Browse the catalog of easily installed Kubernetes services

minikube tunnel

Start a tunnel to create a routable IP for a "balanced" deployment

minikube start -p aged --kubernetes-version=v1.16.1

Create another cluster running an older Kubernetes release

minikube ip

Display Kubernetes IP

Clean-up

Run minikube delete and, if needed, delete the .kube and .minikube folder in your home directory.

Extensions

# Enable metrics-server (https://github.com/kubernetes-sigs/metrics-server)
minikube addons enable metrics-server
kubectl get apiservices

Known issues

  • Incorrect date (can lead to errors with Docker pull)

minikube ssh -- date
minikube ssh
date --set "12 Aug 2020 17:20:00"
exit
minikube ssh -- docker run -i --rm --privileged --pid=host debian nsenter -t 1 -m -u -n -i date -u $(date -u +%m%d%H%M%Y)
minikube ssh -- date

minikube.sigs.k8s.io
kubernetes/minikube
Getting Started page
Installing Kubernetes with Minikube page
Hyper-V driver
Documentation