Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Kubectl Installation at minikube docs #17430

Closed
kumarankit999 opened this issue Oct 15, 2023 · 11 comments · Fixed by #17468
Closed

Add Kubectl Installation at minikube docs #17430

kumarankit999 opened this issue Oct 15, 2023 · 11 comments · Fixed by #17468
Labels
cmd/kubectl Issues with the "kubectl" command kind/documentation Categorizes issue or PR as related to documentation.

Comments

@kumarankit999
Copy link

If we set up the Kubernetes, we first install the Minikube and then install Kubectl. Then only we are able to set up the Kubernetes. But, if we see the https://minikube.sigs.k8s.io/docs/start/ , if we have to start the cluster. Firstly, we have to set up the kubectl but, the command for kubectl "sudo snap kubectl --classic" is missing.
image

I think we can add the kubectl installation commands before starting the cluster or between 2 & 3 step through kubectl or can provide this link https://kubernetes.io/docs/tasks/tools/install-kubectl-linux/ there. So, that anyone can play with minikube cluster very smoothly.

@afbjorklund
Copy link
Collaborator

afbjorklund commented Oct 15, 2023

Did you try minikube kubectl -- ? It automates it.

https://minikube.sigs.k8s.io/docs/handbook/kubectl/

@afbjorklund afbjorklund added kind/documentation Categorizes issue or PR as related to documentation. cmd/kubectl Issues with the "kubectl" command labels Oct 15, 2023
@kumarankit999
Copy link
Author

I think we can add the kubectl installation command or link of that page in between 2 & 3 step because on the 3rd step the kubectl is caming suddenly and get a new term kubectl for him. which makes not understandable for beginners.

@afbjorklund
Copy link
Collaborator

Just saying that you can use minikube to install kubectl...

How to use it after that, that's another story:

https://kubernetes.io/docs/reference/kubectl/

But installation (with version and os/arch), that is automated.

@kumarankit999
Copy link
Author

Yes @afbjorklund, this is also a way

@kumarankit999
Copy link
Author

Should We work on this @afbjorklund ??

@afbjorklund
Copy link
Collaborator

afbjorklund commented Oct 16, 2023

I don't think we need a separate step, to install kubectl... There could be some links to the k8s.io documentation, though.

But we don't need any specials like snap install or brew install, but just use dl.k8s.io (see downloadkubernetes.com)

@afbjorklund
Copy link
Collaborator

See this issue, for why it was simplified and automated:

Installing minikube was bad enough, for most users...

And it's good if they don't have to do it again, for kubectl.

@kumarankit999
Copy link
Author

Ok, but can we add the kubectl installation any reference there?

@afbjorklund
Copy link
Collaborator

There is one page for each OS (unfortunately), but it could be something like:


If you already have kubectl installed (see documentation), you can now use it to access your shiny new cluster:

kubectl get po -A

Alternatively, minikube can download the appropriate version of kubectl and you should be able to use it like this:

minikube kubectl -- get po -A


Then the upstream documentation will have all the different installation options.

@kumarankit999
Copy link
Author

Ok, Thanks for telling me this above. I have cleared all my doubts.

@afbjorklund
Copy link
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cmd/kubectl Issues with the "kubectl" command kind/documentation Categorizes issue or PR as related to documentation.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants