ContainerCraft / Kargo3

KubeVirt Hypervisor | Minimum viable self hosted GitOps PaaS
GNU General Public License v3.0
6 stars 1 forks source link

Explore portability of OpenShift 'Templates' CRD for publishing qubo templates. #6

Closed usrbinkat closed 2 years ago

usrbinkat commented 2 years ago

Problem: many repetitive typed fields are required to deploy similar but different vm's

Solution: Capabilities like that of OpenShift's 'Template' CRD type allow for simple iterative recycling of yaml formats in ways that are very useful for kubevirt hypervisor utilization.

Question: Can the Template CRD be deployed on vanilla Kubernetes?

fabiand commented 2 years ago

Sadly it can not be deployed on stock k8s - there were thgouhts to extract it from openshift into it's own controller ...

However, for VMs at least KubeVirt is implementing flavors (kubevirt/kubevirt#6026) in order to make it easier to write VM definitions with less lines.

usrbinkat commented 2 years ago

Conclusion:

Use vm presets / VirtualMachineFlavor for ntemplating purposes.

REF:

fabiand commented 2 years ago

Presets are also interesting, but don't cover the complete API iirc Thus flavors.