Coder Social home page Coder Social logo

microvm-operator's People

Contributors

callisto13 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

fire-ant

microvm-operator's Issues

Ability to target multiple hosts

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.

Refactor/extract all bits duped from capmvm

The two repos have a lot in common, eg:

  • The service
  • Some bits of spec
  • Some scopes
  • The client

Create some sensible interfaces and move all these into another repo (or several other repos) and use that instead. Then go update capmvm.

Replacing one deployment host with another does not trigger a reconcile

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

improve replicaset scaling logic

// TODO the way this works is very naive and often ends up deleting everything
// if the timing is wrong/right, find a better way

Ability to update microvms

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.

Ability to batch create MicroVMs

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.