Questions tagged [minikube]

Minikube is a tool that makes it easy to run Kubernetes locally. Minikube runs a single-node Kubernetes cluster inside a VM on your laptop for users looking to try out Kubernetes or develop with it day-to-day.

Minikube is a tool that makes it easy to run Kubernetes locally. Minikube runs a single-node Kubernetes cluster inside a Virtual Machine (VM) on your computer. It is useful for trying out Kubernetes, and for day-to-day development.

Minikube supports Kubernetes features such as:

  • DNS
  • NodePorts
  • ConfigMaps and Secrets
  • Dashboards
  • Container Runtime: Docker, rkt and CRI-O
  • Enabling CNI (Container Network Interface)
  • Ingress

Find more information at https://github.com/kubernetes/minikube

Ask questions in #minikube at https://kubernetes.slack.com/messages/minikube/

Getting started http://kubernetes.io/docs/getting-started-guides/minikube/

2619 questions
28
votes
1 answer

Kubernetes (minikube) pod OOMKilled with apparently plenty of memory left in node

I'm using minikube, starting it with minikube start --memory 8192 For 8Gb of RAM for the node. I'm allocating pods with the resource constraints resources: limits: memory: 256Mi requests: memory: 256Mi So 256Mb of…
DMB3
  • 321
  • 1
  • 3
  • 6
28
votes
7 answers

Minikube install in Ubuntu vm_VT-X/AMD-v enabling to VM inside another VM

I'm tring to install minikube in Ubuntu vm (in virtual box). I have enabled VT-X/AMD-v for the vm. But i'm getting following error. # minikube start Starting local Kubernetes cluster... E0217 15:00:35.395801 3869 start.go:107] Error starting…
Lakmal Vithanage
  • 2,767
  • 7
  • 42
  • 58
28
votes
3 answers

Update a Deployment image in Kubernetes

I'm very new to Kubernetes and using k8s v1.4, Minikube v0.15.0 and Spotify maven Docker plugin. The build process of my project creates a Docker image and push it directly into the Docker engine of Minikube. The pods are created by the Deployment…
Yuval Simhon
  • 1,439
  • 2
  • 19
  • 34
27
votes
7 answers

Minikube with ingress example not working

I'm trying to get an ingress controller working in Minikube and am following the steps in the K8s documentation here, but am seeing a different result in that the IP address for the ingress controller is different than that for Minikube (the example…
ShawnC
  • 559
  • 1
  • 6
  • 18
26
votes
1 answer

how to uninstall minikube from ubuntu, i get an 'Unable to load cached images' error

how to completely uninstall minikube from ubuntu 20.04. i'm getting an error from my current minikube when starting : minikube start gets Preparing Kubernetes v1.20.0 on Docker 20.10.0 ...| ❌ Unable to load cached images: loading cached images:…
feiz
  • 539
  • 2
  • 6
  • 14
26
votes
13 answers

minikube does not start on ubuntu 20.04 LTS. Exiting due to GUEST_PROVISION

I am trying to setup minikube in a VM with ubuntu desktop 20.04 LTS installed, using docker driver. I've followed the steps here, and also taken into consideration the limitations for the docker driver (reported here), that have to do with runtime…
WinterBoot
  • 399
  • 1
  • 5
  • 15
26
votes
2 answers

How to use local docker images with microk8s?

I have been using minikube to test Kubernetes locally. In minikube, we can use local docker images by using eval $(minikube docker-env) command. I started to explore microk8s. Installed microk8s using snap on my machine running on Ubuntu 18. Is…
techrider
  • 369
  • 1
  • 3
  • 5
26
votes
3 answers

How do I save kubectl logs to a file on my host machine?

I can see the logs for a particular pod by running 'kubectl logs podName'. I have also seen that logs contains an option --log-dir flag, but it doesn't seem to be working. Is there some kind of configuration I can change, logs will be saved to a…
mbhatia4336
  • 271
  • 1
  • 3
  • 6
25
votes
1 answer

Kubernetes share a directory from your local system to kubernetes container

Is there any way to share the directory/files to kubernetes container from your local system? I have a deployment yaml file. I want to share the directory without using kubectl cp. I tried with configmap but I later came to know that configmap can…
Akshay Sood
  • 6,366
  • 10
  • 36
  • 59
25
votes
4 answers

Minikube expose MySQL running on localhost as service

I have minikube version v0.17.1 running on my machine. I want to simulate the environment I will have in AWS, where my MySQL instance will be outside of my Kubernetes cluster. Basically, how can I expose my local MySQL instance running on my…
cgf
  • 3,369
  • 7
  • 45
  • 65
24
votes
2 answers

Kubernetes version installed by minikube

How to know the kubernetes version that is installed by minikube? I am aware of the kubectl version and the minikube version.
NSP
  • 1,193
  • 4
  • 15
  • 26
24
votes
9 answers

How to access Kubernetes API when using minkube?

What is correct way to kubernetes cluster setup using minikube through the kubernetes api ? At the moment, I can't find a port through which the kubernetes cluster can be accessed.
KarateKid
  • 3,138
  • 4
  • 20
  • 39
23
votes
2 answers

Running Kubernetes locally on M1 Mac

I'm looking to see if it's currently possible to run Kubernetes locally on a 2020 M1 MacBook air. The environment I need is relatively simple, just for going through some tutorials. As an example, this operator-sdk guide. So far I've tried microk8s…
James Cockbain
  • 466
  • 2
  • 4
  • 13
22
votes
6 answers

Connect to local database from inside minikube cluster

I'm trying to access a MySQL database hosted inside a docker container on localhost from inside a minikube pod with little success. I tried the solution described Minikube expose MySQL running on localhost as service but to no effect. I have…
prime
  • 2,004
  • 3
  • 28
  • 45
21
votes
4 answers

-bash: minikube: command not found

I'm trying to follow Install Minikube and even though there are no errors during install, I still unable to run it: $ brew install minikube Updating Homebrew... ==> Downloading…
alexus
  • 7,256
  • 12
  • 44
  • 66