Air-Gap Delivery

Deploy applications and infrastructure offline with Polycrate CLI v0.71.0: offline bundles, manual CLI transfer, Harbor mirroring, and registry proxying.

Air-Gap Delivery

This guide describes how to install, upgrade, and — when needed — roll back a packaged application or platform on an isolated target cluster without internet access using Polycrate CLI v0.71.0.

The examples use the fictional organization acme and an internal OCI registry registry.acme.corp.

1. Contents of the Offline Bundle

A reproducible offline bundle is always version-pinned and signed — never based on mutable :latest tags:

  • Polycrate CLI binary: the .tar.gz archive for the target OS and architecture (linux/darwin, amd64/arm64) from the Public CLI API.
  • Polycrate container image: cargo.ayedo.cloud/library/polycrate:<version> (exported as an OCI archive, since actions run inside the container).
  • Polycrate blocks: all OCI block artifacts referenced via from: in workspace.poly with their exact version tags.
  • Application and base images: all container images required by workloads on the target cluster (matching the cluster architectures).
  • Optional: Git archive of the base workspace without secrets.
  • Integrity verification: SHA-256 checksums and/or signatures (e.g., Cosign).

2. Online Preparation (Staging / Bastion with Internet Access)

Download the Polycrate CLI .tar.gz

Download the exact desired CLI version from the Public CLI API:

export CLI_VERSION="0.71.0"
export OS="linux"
export ARCH="amd64"

curl -fsSLo "polycrate-${CLI_VERSION}-${OS}-${ARCH}.tar.gz"   "https://app.ayedo.cloud/api/v1/cli/public/releases/${CLI_VERSION}/${OS}/${ARCH}/download/"

→ Installation & Updates

Mirror Blocks and Container Images

Check the target versions in the public catalog upfront (polycrate hub inspect <block>), pull all blocks, and export both the block artifacts and the Polycrate container image (e.g., with skopeo or docker save):

# Example: pull blocks with explicit versions
polycrate block pull cargo.ayedo.cloud/ayedo/k8s/harbor:<version>
polycrate block pull cargo.ayedo.cloud/ayedo/k8s/cert-manager:<version>

# Save the Polycrate container image for the target jump host
docker pull cargo.ayedo.cloud/library/polycrate:${CLI_VERSION}
docker save -o "polycrate-image-${CLI_VERSION}.tar"   "cargo.ayedo.cloud/library/polycrate:${CLI_VERSION}"

Next, create a digest list (sha256sum) and sign the entire transfer archive.

3. Transfer and Import in the Air-Gap Network

  1. Transfer the signed bundle into the isolated environment via your approved import channel.
  2. Verify checksums and signatures before proceeding.
  3. Extract the Polycrate CLI archive on the target jump host to ~/.local/bin/polycrate (chmod +x) and load the Polycrate container image with docker load.
  4. Import all application images and OCI blocks into your internal OCI registry (e.g., Harbor at registry.acme.corp).
  5. Create image pull secrets in the target cluster namespaces where required.

4. Configure Transparent Registry Proxying

In workspace.poly, the original from: references can remain unchanged. Polycrate automatically rewrites them to your internal registry via registry.proxy when loading:

# workspace.poly at the air-gapped site
name: acme-site-a-1
organization: acme

config:
  image:
    reference: registry.acme.corp/library/polycrate
    version: "0.71.0"

registry:
  endpoint: registry.acme.corp
  proxy:
    - from: cargo.ayedo.cloud/ayedo
      to: registry.acme.corp/cargo-proxy/ayedo

blocks:
  - name: app
    from: registry.acme.corp/acme/k8s/plant:1.4.0

Detailed proxy patterns and authentication: Registry – Air-Gap Proxying.

5. Installation, Upgrade, and Rollback

Prerequisites on the target jump host: Docker runtime, Polycrate CLI, loaded Polycrate container image, and local kubeconfig at artifacts/secrets/kubeconfig.yml. The target cluster satisfies the requirements listed in Software on a Provided Cluster.

# Initial installation (without external pull if images are already present locally)
polycrate run app install

# Targeted application upgrade: pin new tag in workspace.poly (e.g., 1.4.1)
polycrate block pull registry.acme.corp/acme/k8s/plant:1.4.1
polycrate run app upgrade

# Rollback: re-pin previous tag (1.4.0) and run upgrade
polycrate block pull registry.acme.corp/acme/k8s/plant:1.4.0
polycrate run app upgrade

Common Issues in Air-Gap Operations

Symptom Typical Cause
ImagePullBackOff in cluster Image tag/digest missing in registry.acme.corp or pull secret missing in the namespace
Block not found on pull Block tag not mirrored or registry.proxy rule does not match
Action container fails to start config.image.reference still points to cargo.ayedo.cloud instead of the internal registry
Invalid certificates / tokens Clock drift on nodes — verify internal NTP source
Backups fail No internal S3-compatible object storage reachable outside node disks

See Also