liquidmetal-dev / microvm-operator Goto Github PK
View Code? Open in Web Editor NEWKubernetes Operator to create MicroVMs on Flintlock hosts
License: Mozilla Public License 2.0
Kubernetes Operator to create MicroVMs on Flintlock hosts
License: Mozilla Public License 2.0
Right now you can only create a microvm on a single host.
It would be good to say "take this spec, create it on these hosts".
Note that this is not about us detecting whether the hosts have capacity, or trying to achieve an even spread of microvms across a pool. This is not "i want to create 10 mvms of the same spec across 3 hosts, figure it out. i expect to end up with 10 total".
This is "i want to create 10 mvms of the same spec on each of these 3 hosts. i expect to end up with 30 total".
If we would rather have the other option (either instead of or as well as), we can create a new ticket.
I left this out of the replicaset for now but it would be useful to have.
Any microvm would be deleted anyway in the recreate, but it saves a command.
changing the replicas at the deployment level currently has no effect
// TODO the way this works is very naive and often ends up deleting everything
// if the timing is wrong/right, find a better way
start with:
kind: MicrovmDeployment
spec:
hosts:
- name: host1
endpoint: 127.0.0.1:9090
create.
update to:
kind: MicrovmDeployment
spec:
hosts:
- name: host2
endpoint: 127.0.0.1:9091
I should see the RS deleted from host1 and a new one created on host2. Right now nothing has noticed that this has changed
LET'S HAVE SOME OF THOSE YEH?
The two repos have a lot in common, eg:
Create some sensible interfaces and move all these into another repo (or several other repos) and use that instead. Then go update capmvm.
This is currently configurable at the wrong level
Right now you can only create one microvm at a time.
It would be good to create as many as you like with the same spec. MicrovmReplicaSet
or something.
apiVersion: infrastructure.flintlock.x-k8s.io/v1alpha1
kind: MicrovmReplicaSet
metadata:
name: foobar
spec:
replicas: 3
host:
name: host1
endpoint: 1.2.3.4:9090
template:
spec:
sshPublicKeys:
- user: "root"
authorizedKeys:
- "ssh-ed25519 foobar"
userdata: |
#!/bin/bash
echo "hi from my microvm!"
kernel:
filename: boot/vmlinux
image: ghcr.io/weaveworks-liquidmetal/flintlock-kernel:5.10.77
kernelCmdline: {}
memoryMb: 2048
vcpu: 2
networkInterfaces:
- guestDeviceName: eth1
type: macvtap
rootVolume:
id: root
image: ghcr.io/weaveworks-liquidmetal/capmvm-kubernetes:1.21.8
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.