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
14
votes
2 answers

Access Minikube Loadbalancer Service From Host Machine

I am trying to learn how to use Kibernetes with Minikube and have the following deployment and service: --- kind: Service apiVersion: v1 metadata: name: exampleservice spec: selector: app: myapp ports: - protocol: "TCP" # Port…
Jack Zavarella
  • 335
  • 1
  • 4
  • 13
14
votes
1 answer

Unable to connect to kubernetes python api - .kube/config file not found

I'm having trouble connecting to the kubernetes python client even though I'm following the examples here in the api. Basically this line can't connect to the kubernetes client: config.load_kube_config() What I'm doing: I have a Dockerfile file…
helloworld
  • 399
  • 3
  • 9
  • 21
14
votes
3 answers

Connection Refused to Kubernetes Service

I have been trying to test minikube to create a demo application with three services. The idea is to have a web UI which communicates with the other services. Each service will be written in different languages: nodejs, python and go. I created 3…
Mauro Silva
  • 181
  • 1
  • 2
  • 9
14
votes
2 answers

How to connect to minikube services from outside

I am trying to switch my local dev environment to run in minikube. I have all the container images built and I have all the YAML configs and I have all the services I need running and I can access them using the URL returned from minikube service…
Mad Wombat
  • 14,490
  • 14
  • 73
  • 109
13
votes
2 answers

How to restart Docker Desktop after shutting down WSL?

I installed Docker Desktop for Win10 Home. Everything went fine and I was able to start up minikube. Later I decided to stop Vmmem.exe because I wanted to play a game. Ran the following command: wsl --shutdown Now Vmmem.exe has stopped running but…
HelloWorld
  • 187
  • 1
  • 1
  • 11
13
votes
2 answers

What exactly does nginx.ingress.kubernetes.io/rewrite-target: /$1 mean in minikube annotation?

While working with minikube ingress, I have to write nginx.ingress.kubernetes.io/rewrite-target: /$1. I have been trying hard to understand why we need this annotation and how to use it. I know that the doc says the following: In some scenarios the…
vagdevi k
  • 1,478
  • 9
  • 25
13
votes
1 answer

Minikube is slow and unresponsive

Today randomly minikube seems to be taking very long to respond to command via kubectl. And occasionally even: kubectl get pods Unable to connect to the server: net/http: TLS handshake timeout How can I diagnose this? Some logs from minikube…
Chris Stryczynski
  • 30,145
  • 48
  • 175
  • 286
13
votes
4 answers

Why do I get "unbound immediate PersistentVolumeClaims" on Minikube?

I get "pod has unbound immediate PersistentVolumeClaims", and I don't know why. I run minikube v0.34.1 on macOS. Here are the configs: es-pv.yaml apiVersion: v1 kind: PersistentVolume metadata: name: elasticsearch spec: capacity: storage:…
Michael Böckling
  • 7,341
  • 6
  • 55
  • 76
13
votes
3 answers

Kubernetes fails to run a docker image build locally

I am trying to run a docker image that I have build locally with Kubernetes. Here is my command line: kubectl run myImage --image=myImage --port 3030 --image-pull-policy=IfNotPresent I have seen many peoples saying that we need to add the…
Ludo
  • 5,060
  • 15
  • 53
  • 85
13
votes
1 answer

Kubernetes docker volume mounting option

I have a docker image with the option for property file like, CMD java -jar /opt/test/test-service.war --spring.config.location=file:/conf/application.properties I use the -v volume mount in my docker run command as follows. -v…
user1578872
  • 7,808
  • 29
  • 108
  • 206
13
votes
1 answer

Kubernetes Minikube Docker trying and failing to pull image

I have a docker image called docker-hello-world - all it does is print Hello World to the log using the JRE. When tested it works fine. Then, I import an image into Kubernetes Docker and run – still no issues. docker images -a REPOSITORY …
Joel Werginz
  • 131
  • 1
  • 1
  • 5
13
votes
3 answers

Grafana HTTP Error Bad Gateway and Templating init failed errors

Use helm installed Prometheus and Grafana on minikube at local. $ helm install stable/prometheus $ helm install stable/grafana Prometheus server, alertmanager grafana can run after set port-forward: $ export POD_NAME=$(kubectl get pods --namespace…
online
  • 4,919
  • 10
  • 32
  • 47
13
votes
6 answers

Error while executing and initializing kubeadm

While initializing kubeadm I am getting following errors. I have also tried command kubeadm reset before doing kubadm init. Kubelet is also running and command I have used for same is systemctl enable kubelet && systemctl start kubelet. Following is…
rishi007bansod
  • 1,283
  • 2
  • 19
  • 45
13
votes
6 answers

Why minikube needs a VM

I guess that minikube needs VirtualBox because of dockers' dependencies, but my current docker version doesn't need it. So do I still need VirtualBox or another VM to start minikube?
learnercys
  • 302
  • 1
  • 3
  • 16
13
votes
3 answers

Minikube volumes

Minikube is supposed to make it simple to run Kubernetes locally, not only for "getting started" but also for "day-to-day development workflows". source : https://github.com/kubernetes/minikube/blob/master/ROADMAP.md#goals But I can also read that…
Tristan
  • 8,733
  • 7
  • 48
  • 96