d8 mirror Command
Overview
The d8 mirror command facilitates the distribution of Deckhouse Kubernetes Platform to air-gapped or restricted network environments. It enables users to download (pull) the complete Deckhouse distribution bundle from an external registry and upload (push) it to a private container registry.
This functionality is exclusively available to users holding a valid license for any commercial version of the Deckhouse Kubernetes Platform.
Official Documentation: https://deckhouse.io/products/kubernetes-platform/documentation/latest/installing/#manual-loading-of-dkp-images-and-vulnerability-db-into-a-private-registry
License Note
© Flant JSC 2025
The d8 mirror functionality requires a valid commercial Deckhouse Kubernetes Platform license.
Commands
d8 mirror pull - Download Deckhouse distribution to local filesystem
d8 mirror push - Upload Deckhouse distribution to a third-party registry
d8 mirror pull
Description
Downloads the Deckhouse Kubernetes Platform distribution bundle to the local filesystem. The bundle contains specific platform releases, modules, and security databases that can later be pushed to an air-gapped container registry.
Synopsis
d8 mirror pull <images-bundle-path> [flags]
Arguments
<images-bundle-path> - Path to the directory where the bundle will be stored
Flags
Authentication
| Flag |
Short |
Environment Variable |
Description |
--source |
|
|
Source registry to pull from (default: registry.deckhouse.ru/deckhouse/ee) |
--source-login |
|
D8_MIRROR_SOURCE_LOGIN |
Source registry login |
--source-password |
|
D8_MIRROR_SOURCE_PASSWORD |
Source registry password |
--license |
-l |
D8_MIRROR_LICENSE_TOKEN |
Deckhouse license key (shortcut for --source-login=license-token --source-password=<token>) |
Version Selection
| Flag |
Description |
--since-version |
Minimal Deckhouse release to pull (lower bound, inclusive). Ignored if above current Rock Solid release. Conflicts with --deckhouse-tag and --include-platform |
--include-platform |
Select platform releases by semver constraint (e.g. ">=1.64 <=1.68"). Uses the same constraint dialect as --include-module. Conflicts with --deckhouse-tag and --since-version. See Platform Version Filtering |
--deckhouse-tag |
Specific Deckhouse build tag to pull. Conflicts with --since-version and --include-platform. If the registry contains a release channel image for the specified tag, all release channels in the bundle will point to it |
Module Filtering
| Flag |
Short |
Description |
--include-module |
-i |
Whitelist specific modules. Use one flag per module. Disables --exclude-module. See Module Filtering for format details |
--exclude-module |
-e |
Blacklist specific modules. Format: module-name[@version]. Use one flag per module. Overridden by --include-module |
--modules-path-suffix |
|
Suffix to append to source repo path to locate modules (default: /modules) |
Component Selection
| Flag |
Description |
--no-platform |
Do not pull Deckhouse Kubernetes Platform into bundle |
--no-security-db |
Do not pull security databases into bundle |
--no-modules |
Do not pull Deckhouse modules into bundle |
--only-extra-images |
Pull only extra images for modules (security databases, scanners, etc.) without main module images |
--no-installer |
Do not pull Deckhouse installer into bundle |
--installer-tag |
Specific Deckhouse installer build tag to pull. |
Bundle Options
| Flag |
Short |
Description |
--images-bundle-chunk-size |
-c |
Split resulting bundle into chunks of at most N gigabytes (default: 0 = no splitting) |
--gost-digest |
|
Calculate GOST R 34.11-2012 STREEBOG digest for downloaded bundle |
--force |
|
Overwrite existing bundle packages if they conflict with current pull operation |
--no-pull-resume |
|
Do not continue last unfinished pull operation; start from scratch |
Proxy/Cache Registry Discovery
| Flag |
Description |
--proxy-registry |
Pull from a proxy/caching registry that does not implement the registry catalog API. Discovers tags by probing individual semver versions instead of listing. Requires --include-platform and/or --include-module. See Proxy Registry Mode for a summary and PROXY-REGISTRY.md for the full reference. Cannot be combined with --deckhouse-tag or --since-version |
Connection Options
| Flag |
Description |
--tls-skip-verify |
Disable TLS certificate validation |
--insecure |
Interact with registries over HTTP |
--tmp-dir |
Path to temporary directory for processing. Ensure sufficient disk space for the entire bundle |
The --include-platform flag accepts a semver constraint expression to pull only a specific window of platform releases. It uses exactly the same constraint dialect as the version part of --include-module.
When to use
| Goal |
Recommended flag |
| Pull all releases from a given minimum upward |
--since-version 1.64.0 |
| Pull a bounded range (e.g. for an incremental update) |
--include-platform ">=1.64 <=1.68" |
| Pull every release of a single minor |
--include-platform "~1.65.0" |
Pin a single exact release (same as --deckhouse-tag) |
--include-platform "=v1.65.3" |
Constraint syntax
The same rules apply as for --include-module version constraints (see Module Filtering):
- Latest-patch-per-minor collapsing — for semver ranges, only the highest patch in each
(major, minor) bucket is pulled. Inclusive boundary operators (>=, <=) always preserve the named version as an anchor even when a newer patch exists.
- Channel filtering — release channels whose current snapshot points outside the constraint window are dropped from the bundle so no entry references an image that was not downloaded.
- Exact-tag form (
=) — operationally identical to --deckhouse-tag: a single tag is pulled and all default release channels in the bundle are pointed at it.
Examples
# Pull releases v1.64.x through v1.68.x (incremental update scenario)
d8 mirror pull /tmp/d8-bundle \
--license $LICENSE_TOKEN \
--include-platform ">=1.64 <=1.68"
# Pull only the latest patch of v1.65.x
d8 mirror pull /tmp/d8-bundle \
--license $LICENSE_TOKEN \
--include-platform "~1.65.0"
# Pull every minor from v1.65 onward that the registry exposes
d8 mirror pull /tmp/d8-bundle \
--license $LICENSE_TOKEN \
--include-platform "^1.65.0"
# Pin an exact release (all channels point to v1.65.3)
d8 mirror pull /tmp/d8-bundle \
--license $LICENSE_TOKEN \
--include-platform "=v1.65.3"
Proxy Registry Mode
--proxy-registry adapts the pull command to source registries that act as a transparent proxy or cache in front of another registry and do not implement the registry catalog API (/v2/_catalog, /v2/<name>/tags/list). Instead of calling ListTags, the pull walks individual semver tags forward from a starting point you supply via --include-platform / --include-module and probes each one with a single manifest HEAD request.
Minimal example:
d8 mirror pull /tmp/d8-bundle \
--source proxy.internal.company.com/deckhouse/ee \
--license $LICENSE_TOKEN \
--proxy-registry \
--include-platform ">=1.64.0 <=1.68.0" \
--include-module prometheus@^1.0.0
Full documentation — end-to-end pipeline diagram, walk algorithm, worked example with a step-by-step HEAD-request trace, HTTP response handling, per-component behaviour table, required flag combinations, performance characteristics, known limitations and more examples — lives in a dedicated document:
→ PROXY-REGISTRY.md
Module Filtering
The --include-module and --exclude-module flags support version constraints for fine-grained control over which module versions to include.
module-name[@version-constraint]
Version Constraint Types
-
No version specified - Includes all versions from all release channels
--include-module mymodule
-
Semver caret constraint (^) - Compatible versions (default when version is specified without operator)
--include-module mymodule@1.3.0
--include-module mymodule@^1.3.0 # equivalent
- Example: For available versions
v1.0.0, v1.1.0, v1.2.0, v1.3.0, v1.3.3, v1.4.1
- Constraint
^1.3.0 includes: v1.3.3, v1.4.1
- Only the highest patch in each
(major, minor) series is kept, matching the platform release discovery rule. Use the exact-tag form (=) to pin a specific older patch.
- Versions currently pinned by release channels (alpha, beta, early-access, stable, rock-solid, lts) are pulled in addition, regardless of the patch filter.
- Also pulls current versions from all release channels
-
Semver tilde constraint (~) - Patch-level changes only
--include-module mymodule@~1.3.0
- Example: For available versions
v1.0.0, v1.1.0, v1.2.0, v1.3.0, v1.3.3, v1.4.1
- Constraint
~1.3.0 (equivalent to >=1.3.0 <1.4.0) includes: v1.3.3 (latest patch of 1.3.x)
- Also pulls current versions from all release channels
-
Semver range constraint - Explicit version range
--include-module mymodule@">=1.1.0 <1.3.0"
- Example: For available versions
v1.0.0, v1.1.0, v1.1.2, v1.2.0, v1.2.4, v1.3.0
- Constraint
>=1.1.0 <1.3.0 includes: v1.1.0, v1.1.2, v1.2.4
- The latest patch in each
(major, minor) is kept; inclusive boundary operators (>=, <=) always preserve the named version, even when a newer patch exists in the same minor. >=1.1.0 literally means "v1.1.0 OR newer" — the equality is part of the operator.
- Strict bounds (
>, <) do NOT preserve the named version; they exclude it by definition.
- Caret (
^) and tilde (~) are syntactic shorthand for a range: their lower bounds are NOT anchors and the latest-patch-per-minor filter applies in full.
- Anchors that are not present in the registry are silently skipped — this command never invents a tag.
- Also pulls current versions from all release channels
-
Exact tag match (=) - Single specific version
--include-module mymodule@=v1.3.0
- Includes only
v1.3.0
- Publishes to all release channels (alpha, beta, early-access, stable, rock-solid)
-
Exact tag with custom build identifier
--include-module mymodule@=bobV1
- Includes only the
bobV1 tag
- Publishes to all release channels
-
Exact tag with specific channel
--include-module mymodule@=v1.3.0+stable
- Includes only
v1.3.0
- Publishes only to the
stable channel
Examples
# Download all modules
d8 mirror pull /tmp/d8-bundle --license $LICENSE_TOKEN
# Download a bounded range of platform releases (e.g. v1.64.x – v1.68.x)
d8 mirror pull /tmp/d8-bundle \
--license $LICENSE_TOKEN \
--include-platform ">=1.64 <=1.68"
# Download only specific modules
d8 mirror pull /tmp/d8-bundle \
--license $LICENSE_TOKEN \
--include-module neuvector \
--include-module prometheus
# Download module with version constraint
d8 mirror pull /tmp/d8-bundle \
--license $LICENSE_TOKEN \
--include-module neuvector@^1.2.0
# Combine platform range with a module filter
d8 mirror pull /tmp/d8-bundle \
--license $LICENSE_TOKEN \
--include-platform ">=1.64 <=1.68" \
--include-module neuvector
# Exclude specific modules
d8 mirror pull /tmp/d8-bundle \
--license $LICENSE_TOKEN \
--exclude-module module1 \
--exclude-module module2
# Download only platform and security databases (no modules)
d8 mirror pull /tmp/d8-bundle \
--license $LICENSE_TOKEN \
--no-modules
# Download specific Deckhouse version
d8 mirror pull /tmp/d8-bundle \
--license $LICENSE_TOKEN \
--deckhouse-tag v1.59.0
Environment Variables
Additional configuration options are available through environment variables:
| Variable |
Description |
SSL_CERT_FILE |
Path to SSL certificate. If set, system certificates are not used |
SSL_CERT_DIR |
Colon-separated list of directories to search for SSL certificate files. If set, system certificates are not used. More info: https://docs.openssl.org/1.0.2/man1/c_rehash/ |
HTTP_PROXY |
URL of proxy server for HTTP requests to hosts not listed in NO_PROXY |
HTTPS_PROXY |
URL of proxy server for HTTPS requests to hosts not listed in NO_PROXY |
NO_PROXY |
Comma-separated list of hosts to exclude from proxying. Supports IP addresses, CIDR notations, domains, and asterisk. Domains match name and subdomains. A single * disables all proxying |
Bundle Structure
The pull command creates a bundle with the following structure:
<images-bundle-path>/
├── platform.tar # Deckhouse platform images (if not --no-platform)
├── security.tar # Security databases (if not --no-security-db)
├── module-<name>.tar # Individual module bundles (if not --no-modules)
└── module-<name>-<n>.chunk # Chunked bundles (if --images-bundle-chunk-size is set)
If --gost-digest is specified, .gostsum files are created alongside each .tar file.
d8 mirror push
Description
Uploads a previously downloaded Deckhouse Kubernetes Platform distribution bundle to a third-party container registry. This is typically used to populate an air-gapped registry with Deckhouse images.
Synopsis
d8 mirror push <images-bundle-path> <registry> [flags]
Arguments
<images-bundle-path> - Path to the directory containing the bundle created by d8 mirror pull
<registry> - Target registry address (format: registry-host[:port]/path)
Flags
Authentication
| Flag |
Short |
Environment Variable |
Description |
--registry-login |
-u |
D8_MIRROR_REGISTRY_LOGIN |
Username to log into the target registry |
--registry-password |
-p |
D8_MIRROR_REGISTRY_PASSWORD |
Password to log into the target registry |
Connection Options
| Flag |
Description |
--tls-skip-verify |
Disable TLS certificate validation |
--insecure |
Interact with registries over HTTP |
--tmp-dir |
Path to temporary directory for processing. Ensure sufficient disk space for the entire bundle |
Other Options
| Flag |
Description |
--modules-path-suffix |
Suffix to append to source repo path to locate modules (default: /modules) |
Examples
# Push bundle to private registry with authentication
d8 mirror push /tmp/d8-bundle registry.company.com/deckhouse \
--registry-login admin \
--registry-password secretpassword
# Push to registry over HTTP (insecure)
d8 mirror push /tmp/d8-bundle registry.local:5000/deckhouse \
--insecure
# Push with custom temporary directory
d8 mirror push /tmp/d8-bundle registry.company.com/deckhouse \
--registry-login admin \
--registry-password secretpassword \
--tmp-dir /mnt/large-disk/tmp
Environment Variables
The same environment variables used by d8 mirror pull are also supported:
| Variable |
Description |
SSL_CERT_FILE |
Path to SSL certificate |
SSL_CERT_DIR |
Colon-separated list of directories for SSL certificates |
HTTP_PROXY |
HTTP proxy server URL |
HTTPS_PROXY |
HTTPS proxy server URL |
NO_PROXY |
Comma-separated list of hosts to exclude from proxying |
Complete Workflow Example
Scenario: Air-Gapped Installation
-
On a machine with internet access, download the bundle:
# Full pull from a minimum version
d8 mirror pull /tmp/deckhouse-bundle \
--license $DECKHOUSE_LICENSE_TOKEN \
--since-version 1.59.0 \
--include-module prometheus \
--include-module ingress-nginx \
--images-bundle-chunk-size 10
# Or pull only a specific version window for an incremental update
d8 mirror pull /tmp/deckhouse-bundle \
--license $DECKHOUSE_LICENSE_TOKEN \
--include-platform ">=1.64 <=1.68" \
--include-module prometheus \
--include-module ingress-nginx
-
Transfer the bundle to the air-gapped environment (USB drive, secure file transfer, etc.)
-
On a machine in the air-gapped environment, push to the internal registry:
d8 mirror push /tmp/deckhouse-bundle registry.internal.company.com/deckhouse \
--registry-login admin \
--registry-password admin_password
-
Configure Deckhouse to use the internal registry during installation
Troubleshooting
Common Issues
Insufficient Disk Space
Problem: Pull operation fails due to lack of disk space.
Solution:
- Use
--tmp-dir to specify a location with more space
- Use
--images-bundle-chunk-size to split the bundle into smaller chunks
- Use component flags (
--no-modules, --no-security-db) to reduce bundle size
TLS Certificate Errors
Problem: TLS certificate validation failures when connecting to registries.
Solution:
- Use
--tls-skip-verify to disable certificate validation (not recommended for production)
- Set
SSL_CERT_FILE or SSL_CERT_DIR to provide custom certificates
- Ensure system certificates are up to date
Authentication Failures
Problem: Unable to authenticate to source or target registry.
Solution:
- Verify credentials are correct
- For Deckhouse registry, use
--license flag with your license token
- Check that the license is valid and not expired
- Ensure network access to the registry
Pull Resume Issues
Problem: Pull operation keeps retrying from scratch.
Solution:
- The tool automatically resumes incomplete pulls within 24 hours
- Use
--no-pull-resume to force starting from scratch
- Use
--force to overwrite conflicting bundle packages
Debug Logging
Enable debug logging to troubleshoot issues:
# Set debug level (1-4, higher = more verbose)
export D8_LOG_LEVEL=3
d8 mirror pull /tmp/bundle --license $LICENSE_TOKEN
Best Practices
- Use Local Storage: Ensure
--tmp-dir points to fast local storage (SSD preferred)
- Network Bandwidth: Large bundles can be several gigabytes; ensure adequate bandwidth
- Parallel Operations: The tool automatically parallelizes image pulling
- Chunking: For very large bundles or size-constrained transfers, use
--images-bundle-chunk-size
Security Considerations
- Protect Credentials: Use environment variables for sensitive values
- Secure Transfer: Use encrypted channels when transferring bundles
- Verify Integrity: Use
--gost-digest to generate checksums for bundle verification
- TLS Validation: Avoid
--tls-skip-verify in production environments
Version Management
- Use
--since-version: To pull all releases from a given minimum upward, reducing bundle size relative to a full pull
- Use
--include-platform: To pull a bounded window of releases (e.g. ">=1.64 <=1.68") — useful for staged incremental updates where you want to move up a few minors at a time without pulling the entire channel history
- Specific Versions: Use
--deckhouse-tag (or --include-platform "=vX.Y.Z") for fully controlled, single-release deployments
- Module Versioning: Leverage semver constraints in
--include-module for flexible module version management; --include-platform speaks the same dialect
- Release Channels: Pulling respects all configured release channels (alpha, beta, early-access, stable, rock-solid); channels whose snapshot falls outside an
--include-platform constraint are automatically excluded from the bundle
Bundle Management
- Regular Updates: Periodically pull new bundles to stay current with security patches
- Version Control: Track which bundle versions are deployed in which environments
- Storage Planning: Account for bundle size growth over time (multiple versions, modules)
- Cleanup: Remove old bundles after successful deployment to free space
Architecture Notes
Bundle Components
The mirror system handles three primary component types:
- Platform Images: Core Deckhouse Kubernetes Platform containers
- Modules: Optional Deckhouse modules with versioned releases
- Security Databases: Vulnerability scanning databases and related data
By default, the platform service discovers releases between the current rock-solid channel version (lower bound) and the current alpha channel version (upper bound), keeping the highest patch per (major, minor).
--since-version raises the lower bound above rock-solid when the user wants to skip older minors.
--include-platform replaces this window with a user-supplied semver constraint, applying the same latest-patch-per-minor and inclusive-anchor rules as module version filtering. Channel snapshots outside the constraint are pruned so the bundle stays internally consistent.
--proxy-registry replaces the catalog-based ListTags call entirely with a sequential forward-probe walk seeded from the constraint's lower bound. The latest-patch-per-minor and inclusive-anchor rules still apply to the result; only the way the candidate tag list is obtained changes. Full reference: PROXY-REGISTRY.md.
Module Filtering Logic
- Whitelist Mode: Only specified modules are included
- Blacklist Mode: All modules except specified ones are included (default)
- Version Constraints: Semver-based filtering for granular control (same dialect as
--include-platform)
- Release Channels: Each module can have multiple release channel versions
Storage Layout
Internally, the tool uses OCI-compliant image layouts for organizing container images and manifests. This ensures compatibility with standard container tools and registries.
Additional Resources
Support
For issues, questions, or feature requests: