Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference between kubectl and minikube-kubectl

I'm using Mac OS for development environment.

If I install minikube, the kubectl will use the local cluster made by minikube as a default option. I found I can use kubectl command with minikube prefix - just like below:

$ minikube kubectl get pods

So I tried it, and kubectl download process began. So I can get that the kubectl in my Mac and the kubectl in minikube is not identical. But what does thie mean?

like image 671
cadenzah Avatar asked Jul 26 '19 04:07

cadenzah


1 Answers

It's just a wrapper for kubectl, downloading it when not installed, otherwise executing the client.

See the command with '--help' below.

$ minikube kubectl --help

Run the kubernetes client, download it if necessary.

Usage: minikube kubectl [flags]

Flags: -h, --help help for kubectl

Global Flags:

[...]

like image 51
char Avatar answered Sep 23 '22 11:09

char