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
39
votes
4 answers

Getting "ErrImageNeverPull" in pods

Am using minikube to test out the deployment and was going through this link And my manifest file for deployment is like apiVersion: extensions/v1beta1 kind: Deployment metadata: name: webapp spec: replicas: 1 template: metadata: …
Prateek Naik
  • 2,522
  • 4
  • 18
  • 38
37
votes
6 answers

Delete kubernetes cluster on docker-for-desktop OSX?

What is the equivalent command for minikube delete in docker-for-desktop on OSX As I understand, minikube creates a VM to host its kubernetes cluster but I do not understand how docker-for-desktop is managing this on OSX.
John Smith
  • 433
  • 1
  • 4
  • 9
37
votes
3 answers

kubectl ls -- or some other way to see into a POD

I'm using kubectl cp to copy a jar file from my local file system into a the home directory of a POD in my minikube environment. However, the only way I can confirm that the copy succeeded is to issue a new kubectl cp command to copy the file back…
Greg Charles
  • 1,880
  • 4
  • 20
  • 39
35
votes
4 answers

How to fix VM issue with minikube start ?

I am a beginner to Kubernetes and starting off with this tutorial. I installed VM and expected to be able to start a cluster by using the command: minikube start But I get the error: Starting local Kubernetes v1.10.0 cluster... Starting…
Satyajit Das
  • 2,740
  • 5
  • 16
  • 30
35
votes
5 answers

How to start a pod in command line without deployment in kubernetes?

I want to debug the pod in a simple way, therefore I want to start the pod without deployment. But it will automatically create a deployment $ kubectl run nginx --image=nginx --port=80 deployment "nginx" created So I have to create the nginx.yaml…
Larry Cai
  • 55,923
  • 34
  • 110
  • 156
35
votes
1 answer

Kubernetes Logs - How to get logs for kube-system pods

How do you get logs from kube-system pods? Running kubectl logs pod_name_of_system_pod does not work: λ kubectl logs kube-dns-1301475494-91vzs Error from server (NotFound): pods "kube-dns-1301475494-91vzs" not found Here is the output from get…
Denis Biondic
  • 7,943
  • 5
  • 48
  • 79
34
votes
8 answers

Kubernetes: How to delete PODs based on age/creation time

Is it possible to delete POD in kubernetes based on creation time or age? Example : I would like to delete all PODs which are older than 1 day. These PODs are orphaned , therefore no new PODs will be created.
dansl1982
  • 998
  • 1
  • 7
  • 10
34
votes
5 answers

Downgrade kubectl version to match minikube k8s version

I started minikube with k8s version 1.5.2 and I would like to downgrade my kubectl so that it is also 1.5.2. Currently when I run kubectl version I get: Client Version: version.Info{Major:"1", Minor:"7", GitVersion:"v1.7.5",…
appdap1
  • 521
  • 1
  • 6
  • 17
33
votes
7 answers

minikube dashboard returns 503 error on macOS

I have recently installed minikube and VirtualBox on a new Mac using homebrew. I am following instructions from the official minikube tutorial. This is how I am starting the cluster - minikube start --vm-driver=hyperkit On running kubectl…
0xC0DED00D
  • 19,522
  • 20
  • 117
  • 184
31
votes
7 answers

Can't access minikube service using NodePort from host on Mac

I'm trying to deploy a single web application to Minikube on my Mac, and then access it in the browser. I'm trying to use the simplest of setups, but it's not working, I just get a "connection refused" error and I can't figure out why. This is what…
simbro
  • 3,372
  • 7
  • 34
  • 46
31
votes
4 answers

What is the difference between namespaces and contexts in Kubernetes?

I found specifying like kubectl --context dev --namespace default {other commands} before kubectl client in many examples. Can I get a clear difference between them in a k8's environment?
31
votes
18 answers

Unable to connect to the server: net/http: TLS handshake timeout

On minikube for windows I created a deployment on the kubernetes cluster, then I tried to scale it by changing replicas from 1 to 2, and after that kubectl hangs and my disk usage is 100%. I only have one container in my deployment apiVersion:…
erotavlas
  • 4,274
  • 4
  • 45
  • 104
31
votes
3 answers

netstat showing foreign ports as kubernetes:port. What does this mean?

I am using a Windows 10 Pro machine. When I run netstat, it is showing kubernetes:port as foreign address in active connections. What does this mean? I have checked and there is no kubernetes cluster running on my machine. How do I close these…
Shubham Chadokar
  • 2,520
  • 1
  • 24
  • 45
30
votes
10 answers

How to use "kubectl" command instead of "sudo kubectl"

For every command with kubectl I need to use sudo kubectl. I understand the security perspective but I am working on a test environment and I want to be able use it without sudo. I tried to run sudo -i and use the root account to runkubectl get…
E235
  • 11,560
  • 24
  • 91
  • 141
30
votes
10 answers

How to transfer files between local machine and minikube?

I am using OS Ubuntu 16.0.4 and i installed minikube on it. I need to copy some files to minikube, so how can i do that? I tried next command but it asked me on password and i don't know it scp /media/myuser/sourceFolder…
mibrahim.iti
  • 1,928
  • 5
  • 22
  • 50