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

Make minikube (and kvm2) installable with "apt" #3110

Open
felixfbecker opened this issue Sep 3, 2018 · 18 comments
Open

Make minikube (and kvm2) installable with "apt" #3110

felixfbecker opened this issue Sep 3, 2018 · 18 comments
Labels
kind/feature Categorizes issue or PR as related to a new feature. lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness. os/linux packaging/apt Debian (apt) packaging issues packaging Packaging issues priority/backlog Higher priority than priority/awaiting-more-evidence. sig/release Categorizes an issue or PR as relevant to SIG Release.

Comments

@felixfbecker
Copy link

I couldn't find any instructions on how to install minikube with apt-get, is a package available? There is one for kubectl

@afbjorklund
Copy link
Collaborator

There is only a .deb file, and it is not complete since you also need "kvm2" driver (#2982)

https://github.com/kubernetes/minikube/releases/download/v0.28.2/minikube_0.28-2.deb

@tstromberg tstromberg added kind/feature Categorizes issue or PR as related to a new feature. os/linux packaging Packaging issues labels Sep 18, 2018
@tstromberg tstromberg changed the title Install with apt-get Make minikube installable with "apt-get" Sep 18, 2018
@nmabhinandan
Copy link

I think @felixfbecker wants the minikube package in "apt.kubernetes.io" repository. It'd make it really easy instead of manually maintaining minikube and kvm2 driver.

@fejta-bot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jan 20, 2019
@mgabeler-lee-6rs
Copy link

Not sure if I have permissions to do this, but ...
/remove-lifecycle stale

I would still very much appreciate being able to do this. Esp. having apt / apt-get be the method of installing the other tools that minikube currently downloads into a mix of /usr/bin and /usr/local/bin.

@tstromberg tstromberg added lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness. priority/important-longterm Important over the long term, but may not be staffed and/or may need multiple releases to complete. help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Jan 23, 2019
@afbjorklund
Copy link
Collaborator

Minikube should only be downloading to the cache or to the VM, not to /usr/bin and /usr/local/bin.

@mklauber
Copy link

minikube suggests the following command on first setup. curl -Lo kubectl https://storage.googleapis.com/kubernetes-release/release/v1.13.2/bin/linux/amd64/kubectl && chmod +x kubectl && sudo cp kubectl /usr/local/bin/ && rm kubectl which is perhaps what @mgabeler-lee-6rs is referring to.

@mgabeler-lee-6rs
Copy link

mgabeler-lee-6rs commented Mar 5, 2019

Minikube should only be downloading to the cache or to the VM, not to /usr/bin and /usr/local/bin.

Nonetheless, it does download to /usr/bin/. Partial output of running minikube start on a system where I've cleaned out minikube's prior doing of this:

😄  minikube v0.34.1 on linux (amd64)
... snipped ...
✨  Preparing Kubernetes environment ...
💾  Downloading kubeadm v1.13.3
💾  Downloading kubelet v1.13.3

This happens in the code here: https://github.com/kubernetes/minikube/blob/master/pkg/minikube/bootstrapper/kubeadm/kubeadm.go#L414 -- observe that the /usr/bin path is hard coded there.


Edit: clarification: this is happening with minikube config set vm-driver none

@afbjorklund
Copy link
Collaborator

Let's call it a work in progress (#3718), right now it (none) pretty much needs to run with sudo -E

But it is only recommended to use vm-driver none on a dedicated VM of your choice, not the laptop

@tstromberg
Copy link
Contributor

tstromberg commented Aug 6, 2019

I believe the only thing left here is to add our package to apt.kubernetes.io

Does anyone happen to know how one does so?

UPDATE: Opened kubernetes/release#839

@tstromberg tstromberg added this to the v1.4.0 Candidate milestone Aug 6, 2019
@tstromberg tstromberg self-assigned this Aug 19, 2019
@tstromberg tstromberg modified the milestones: v1.4.0, v1.5.0-candidate Sep 4, 2019
@tstromberg tstromberg removed the r/2019q2 Issue was last reviewed 2019q2 label Sep 20, 2019
@tstromberg tstromberg modified the milestones: v1.5.0, v1.6.0-candidate Oct 14, 2019
@tstromberg tstromberg removed this from the v1.6.0-candidate milestone Oct 21, 2019
@tstromberg
Copy link
Contributor

Still blocked on kubernetes/release#839 - this will require package signing, which they don't yet support for sub-projects. :(

@afbjorklund
Copy link
Collaborator

No updates since Dec 12, 2019 - so I guess we now have signing issues on all four OS platforms...

Maybe we should just try to get minikube added to Ubuntu/Debian and CentOS/Fedora instead ?

@tstromberg tstromberg added sig/release Categorizes an issue or PR as relevant to SIG Release. and removed help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. labels Apr 6, 2020
@priyawadhwa priyawadhwa added priority/backlog Higher priority than priority/awaiting-more-evidence. and removed priority/important-longterm Important over the long term, but may not be staffed and/or may need multiple releases to complete. labels Aug 26, 2020
@afbjorklund
Copy link
Collaborator

We will need to do either of: 1) run dpkg forever (close this ticket) 2) host apt repository ourselves (sig release won't help us)

@EraYaN
Copy link

EraYaN commented Apr 8, 2021

@afbjorklund Since it seems the actual packaging in the main k8s repos is never going to happen, self hosting is the way to go.

@afbjorklund
Copy link
Collaborator

afbjorklund commented Apr 8, 2021

Since it seems the actual packaging in the main k8s repos is never going to happen, self hosting is the way to go.

We are more likely to stay at the first option and stick with GCS, at least until the installation gets more complicated...

Eventually we will need to host and cache package dependencies, especially for volatile upstreams like OBS: #9552
But for minikube itself (and dependencies like crictl), I think we are stuck with manually downloading binaries for now.

Or: 0install run https://apps.0install.net/kubernetes/minikube.xml (still true: decentralised-installation-systems)

@EraYaN
Copy link

EraYaN commented Apr 9, 2021

Manually downloading binaries is so... Windows like. It's a real shame, and 0install is not really an option in company settings, while getting apt repo's approved is much easier, especially offical ones.

@afbjorklund
Copy link
Collaborator

I left the "apt" and "yum" targets in the Makefile in case someone else wants to pick it up, but it's not a technical issue any more...

@afbjorklund
Copy link
Collaborator

afbjorklund commented Aug 8, 2021

See kubernetes/release#281 for apt.kubernetes.io future

@afbjorklund afbjorklund changed the title Make minikube (and kvm2) installable with "apt-get" Make minikube (and kvm2) installable with "apt" Aug 8, 2021
@tstromberg tstromberg removed their assignment Aug 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Categorizes issue or PR as related to a new feature. lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness. os/linux packaging/apt Debian (apt) packaging issues packaging Packaging issues priority/backlog Higher priority than priority/awaiting-more-evidence. sig/release Categorizes an issue or PR as relevant to SIG Release.
Projects
None yet
Development

No branches or pull requests

10 participants