k0sproject / k0sproject/k0sctl

Add top/host level configuration for airgap

Open
#356 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Go
Stars
582
Forks
113
Avg merge
2d 13h
Merged PRs (30d)
34

Description

Instead of using the `files:` feature, it would work like the k0s binary uploads.

```yaml
spec:
hosts:
- role: controller
airgap: true
```

```yaml
spec:
hosts:
- role: controller
airgapBundlePath: files/k0s-airgap-bundle-x86-1.23+k0s.4 # similar to the k0sBinaryPath
```

This could also have a feature that would prepare your k0sctl host's caches, something like `k0sctl prepare-airgap` which would download all the required binaries + bundles to local cache, then you can take your machine to the bunker and run `apply` there. Maybe with something like `--output-directory /mnt/usb_stick/k0s_binaries`.

Contributor guide

No contributing guide indexed for this repository

Research direction

Trace the existing `files:` feature and k0s binary upload handling, especially the `k0sBinaryPath` path configuration. Then inspect the `apply` flow and the proposed `k0sctl prepare-airgap` entry point to define the scope for host-level airgap settings and cache preparation. Done means the requested configuration and offline preparation workflow are supported without relying on ad hoc file entries.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, kubernetes
Domain
cli, infrastructure
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.