Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

❇️ Support airgap install #99

Merged
merged 1 commit into from
Apr 17, 2024
Merged

❇️ Support airgap install #99

merged 1 commit into from
Apr 17, 2024

Conversation

nasusoba
Copy link
Contributor

@nasusoba nasusoba commented Apr 17, 2024

K3s is supporting air-gapped installations(see k3s Air-Gap Install). This PR allowed the user to run CAPI k3s in an air-gapped environment.

Summary

  • Add a boolean config AirGapped to KThreesAgentConfig. If set to true, in the cloudinit file, it will use INSTALL_K3S_SKIP_DOWNLOAD=true INSTALL_K3S_EXEC='server' sh /opt/install.sh instead of curl -sfL https://get.k3s.io | INSTALL_K3S_VERSION=%s sh -s - server.
  • Small Modification to avoid code duplication:
    • Merge controlPlaneCloudJoin and controlPlaneCloudInit
    • Introduce a variable SentinelFileCommand (the command echo success to bootstrap-success.complete)
  • Add samples/air-gapped/README.md for guiding the user for airgap install setup, also I use it for validation

Note

  • Currently, we are still using etcdproxy and it needs to be downloaded from Internet. But as etcdproxy is deprecating, the feature will be fully supported after etcdproxy removed

Signed-off-by: nasusoba <[email protected]>
@mogliang mogliang merged commit eaf955d into k3s-io:main Apr 17, 2024
5 checks passed
@nasusoba nasusoba deleted the airgap branch May 15, 2024 06:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants