-
Notifications
You must be signed in to change notification settings - Fork 4
feat: wg-easy airgap install #70
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
Conversation
* add additionalImages for image in preflight in wg-easy * update HelmChart values mapping to match with bjw-s common chart values
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes look good
applications/wg-easy/Taskfile.yaml
Outdated
|
||
echo "Airgap build status: $AIRGAP_BUILD_STATUS" | ||
|
||
if [ "$AIRGAP_BUILD_STATUS" = "metadata" ]; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Checking the status of the airgap build is nice. I think we should wait for the build to complete. As a user, it would be nice to just run task cmx-vm-install...
, get some coffee and come back to find the deployment done.
We can add a new wait-airgap-build
task or something like that, or we can just wait within cmx-vm-install
task
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's great idea, I've added new task airgap-build
with polling and can be called separately or from cmx-vm-install
.
e.g.
Check if user is set...
Check if license ID is set...
Airgap mode enabled, ensuring airgap build is ready...
Checking if airgap build is available for latest release in channel Unstable...
Found app ID: 2xzKY8D0vi6qlCGajpFLEumdsi6, channel ID: 2xzKY7R5vVrmM1CaE13yKqRKFXH
Airgap build status: metadata
Airgap has not been built yet. Triggering build...
{}Airgap build triggered. Polling every 10 seconds for up to 5 minutes...
Checking airgap build status... (attempt 1/30)
Airgap build current status: building
Checking airgap build status... (attempt 2/30)
Airgap build current status: building_bundle
Checking airgap build status... (attempt 3/30)
Airgap build current status: building_bundle
Checking airgap build status... (attempt 4/30)
Airgap build current status: building_bundle
Checking airgap build status... (attempt 5/30)
Airgap build current status: building_bundle
Checking airgap build status... (attempt 6/30)
Airgap build current status: building_bundle
Checking airgap build status... (attempt 7/30)
Airgap build current status: building_bundle
Checking airgap build status... (attempt 8/30)
Airgap build current status: building_bundle
Checking airgap build status... (attempt 9/30)
Airgap build current status: built
Airgap build completed successfully!
Airgap bundle images: [
"debian:buster-slim",
"docker.io/traefik:v3.0.0",
"ghcr.io/wg-easy/wg-easy:14",
"quay.io/jetstack/cert-manager-cainjector:v1.14.5",
"quay.io/jetstack/cert-manager-controller:v1.14.5",
"quay.io/jetstack/cert-manager-startupapicheck:v1.14.5",
"quay.io/jetstack/cert-manager-webhook:v1.14.5",
"registry.replicated.com/library/replicated-sdk-image:1.5.3"
]
SSH into the VM and download the app binary...
Add Airgap Installation Support for WG-Easy
Summary
This PR adds airgap installation support for the WG-Easy application, enabling deployment in air-gapped environments without internet access.
Key Changes
🚀 Airgap Installation Logic
AIRGAP
parameter in Taskfile.yaml to enable airgap mode🏗️ Image Registry Configuration
Updated all Helm charts to support local registry overrides for airgap deployments with Embedded Cluster
Usage
To install in airgap mode:
The system will:
Testing
TODO