rancher / elemental

Elemental is an immutable Linux distribution built to run Rancher and its corresponding Kubernetes distributions RKE2 and k3s. It is built using the Elemental-toolkit
https://elemental.docs.rancher.com/
Apache License 2.0
294 stars 39 forks source link

[airgap] PoC #937

Closed fgiudici closed 1 year ago

fgiudici commented 1 year ago

Create a test airgap environment and deploy elemental from there

fgiudici commented 1 year ago

A Rancher airgapped deployment requires a private registry in the isolated infrastructure. The container images for the clusters itselves (K3s, RKE2, ...), for Rancher and required charts (certmanager) should be downloaded and loaded in the private registry. Rancher doc here. Notes:

When installing Rancher from helm (from a locally pulled tgz chart of course) the --set useBundledSystemChart=true will instruct Rancher to get the "apps" (the charts in the Rancher Marketplace) from a local cache from the rancher/rancher image (which is loaded in the private registry). So, all the charts in the Rancher Marketplace will be available in the airgapped Rancher.

The UI extensions instead ARE NOT managed in the airgap scenario (apart from the default installed ones). UI extension airgap should be managed apart (and yes, also the Elemental UI extension will not be there by default).

Since Elemental charts are not in the Rancher Marketplace (yet) installation of Elemental in an airgap scenario requires extra steps:

fgiudici commented 1 year ago

PoC ready: started from a Rancher airgap scenario, installed Elemental operator from https://github.com/rancher/elemental-operator/pull/497 and created a MachineRegistration. Enabling ISO building and OS updated will require https://github.com/rancher/elemental/issues/950 .