esdc-ce icon indicating copy to clipboard operation
esdc-ce copied to clipboard

Create matchbox image flatcar linux and Redhat CoreOS automation

Open fishman opened this issue 5 years ago • 3 comments

Matchbox seems to have become a standard for auto-provisioning Flatcar linux environments such as etcd, Lokomotiv Kubernetes and other environments on top of flatcar linux(CoreOS fork) and RedHat CoreOS.

It is built as a go binary that we could integrate into an LX Zone or maybe even a normal SmartOS zone.

https://github.com/poseidon/matchbox

https://matchbox.psdn.io

fishman avatar Sep 28 '20 03:09 fishman

(Related to #504)

Not sure what you are trying to achieve. Do you want to create a VM image with the matchbox binary present? Or do you want to create some automation from it? In the first case, we can add it as a pkgsrc package. In the second case you need to describe your intentions a bit more.

YanChii avatar Sep 28 '20 07:09 YanChii

I think first step would be for me to see if there is any issue to running matchbox inside of a solaris zone.

If not step one would be to add it to pkgsrc and create a base image that we can create.

I think the normal use case would then be using terraform:

  1. create new net
  2. deploy matchbox vm in the new network
  3. configure with terraform matchbox
  4. create new vms and have them configured automatically using matchbox(for example etcd, kubernetes etc...)

fishman avatar Sep 28 '20 07:09 fishman

We can push the matchbox/ignition scripts using the metadata when creating a VM. The same process is currently used for cloud-init scripts.

YanChii avatar Oct 24 '20 09:10 YanChii