-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Feat: lima support for local development #12421
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
base: master
Are you sure you want to change the base?
Conversation
Basic roles lima skeleton Signed-off-by: ChengHao Yang <[email protected]>
Signed-off-by: ChengHao Yang <[email protected]>
Signed-off-by: ChengHao Yang <[email protected]>
Signed-off-by: ChengHao Yang <[email protected]>
`make` or `make all` can create VMs and install Kubespray, `make stop` can stop and remove VMs. Signed-off-by: ChengHao Yang <[email protected]>
Signed-off-by: ChengHao Yang <[email protected]>
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: tico88612 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/label tide/merge-method-merge |
/hold To prevent accidental merging. |
Currently I'm getting
When I fix the temp file to remove the offending None and the network, it appears to launch, but can't complete the vm start, but I think that might be my setup, I just installed lima and maybe I need to configure some stuff to make it work with libvirt in session mode |
Hmmm... weird..., I remember
|
Yeah, if I remove the lines from the generated file it works (well, it goes to the next error more like 😆 ) , but apparently if it's explicitely set to None it does not work. |
Generated file look like this : vmType: None
arch: None
images:
- arch: x86_64
digest: sha256:f1652d29d497fb7c623433705c9fca6525d1311b11294a0f495eed55c7639d1f
location: https://cloud-images.ubuntu.com/releases/noble/release-20250704/ubuntu-24.04-server-cloudimg-amd64.img
- arch: aarch64
digest: sha256:bbecbb88100ee65497927ed0da247ba15af576a8855004182cf3c87265e25d35
location: https://cloud-images.ubuntu.com/releases/noble/release-20250704/ubuntu-24.04-server-cloudimg-arm64.img
cpus: 2
memory: 2GiB
disk: 20GiB
containerd:
user: false
user:
name: kubespray
networks:
- lima: shared |
I already tested on Ubuntu 24.04, Lima's support for Linux is pretty poor. |
What type of PR is this?
/kind feature
What this PR does / why we need it:
This is a PoC about Lima, which can replace Vagrant for local development.
Which issue(s) this PR fixes:
Fixes #12237
Special notes for your reviewer:
make
ormake all
will create VMs and install Kubespray,make stop
will delete VMs.Does this PR introduce a user-facing change?: