Install Deckhouse Platform on machines running Deckhouse Engine. The example uses three master nodes and one worker node.
Before you begin
Prepare four x86-64 machines that boot via Unified Extensible Firmware Interface (UEFI). Each machine needs a blank system disk of at least 20 GiB. In this example, each master node also has a separate blank 10 GiB disk for etcd. The installer formats the selected disks.
Use the cluster hardware requirements to size and select machines for your expected workload.
The installer host must be able to reach TCP port 50000 on all three master machines and TCP port 50001 on the first master machine. See the network requirements for details.
Install Docker and jq on the installer host.
Preparing the machines
Run the Deckhouse Platform installer for your chosen edition. See the edition comparison for details.
-
Get the digest of the image containing the installation ISO. Use the installer image for the edition and release channel you plan to install:
docker run --rm --pull=always 'registry.deckhouse.io/deckhouse/<EDITION>/install:<CHANNEL>' \ cat /deckhouse/candi/images_digests.json | jq -r .nodeManager.engineMetalIsoReplace
<EDITION>with the edition and<CHANNEL>with the release channel. -
Extract the ISO file from the image:
docker create --name engine-iso 'registry.deckhouse.io/deckhouse/<EDITION>@<ISO_DIGEST>' true docker cp engine-iso:/disk/metal.iso . docker rm engine-iso -
Boot each machine from
metal.isousing a USB drive or a virtual CD-ROM. The installer gets an address via Dynamic Host Configuration Protocol (DHCP) and waits for configuration. If DHCP is unavailable, configure the address manually. -
Check that the machine is waiting for configuration:
curl -s 'http://<NODE_ADDRESS>:50000/whoami'An
installerresponse means the machine is ready. Anagentresponse means the node is already installed and the machine will reject the configuration. -
List the machine’s disks to identify the system disk:
curl -s 'http://<NODE_ADDRESS>:50000/inventory'Use
wwid,serial, orbusPathto select the disk. These attributes remain stable across reboots.
Installing the cluster
Set spec.systemType to DeckhouseEngine in the master and worker NodeGroups. The installer uses the master group to configure all three master nodes and creates the worker group for later use.
Save the installation configuration as config.yml. Set the network ranges and domain template for your cluster.
If you omit diskSelector, the installer selects the system disk by size (size: ">=20Gi").
-
Create the directory for installation logs and kubeconfig, then start the installer container:
docker run -it --pull=always \ -v "$PWD/config.yml:/config.yml" \ -v "$PWD/dhctl-tmp:/tmp/dhctl" \ 'registry.deckhouse.io/deckhouse/<EDITION>/install:<CHANNEL>' bash -
In the container, run
dhctl bootstrap. Replace the example IP addresses with the addresses of the three master machines. Installation starts on the machine listed in the first--master-hostparameter. In this example, that ismaster-0.dhctl bootstrap \ --config=/config.yml \ --master-host master-0=192.168.1.10 \ --master-host master-1=192.168.1.11 \ --master-host master-2=192.168.1.12The installer connects to Deckhouse Engine on port
50000. Leave the SSH connection parameters unset.
After installation, the installer retrieves the kubeconfig file from the master node and prints its path in the installation log. Use this file to connect to the Kubernetes API.
Deckhouse Engine master nodes require an upstream image registry during installation. For an air-gapped installation, use the registry module in Managed mode with an image registry inside your network, populated with d8 mirror push. The Local mode uses an installation bundle and does not support this scenario.
Adding a worker node
Use the kubeconfig from installation to connect to the cluster.
In the worker NodeGroup, set nodeType: Static and systemType: DeckhouseEngine.
-
Boot the machine from
metal.isoand make sure it is waiting for configuration. AGETrequest to/whoamireturnsinstaller. -
Add the machine to the
workergroup:d8 node add 192.168.1.20 --group workerThe command reads the group’s NodeConfig template and the machine’s disks. It determines the system disk, network configuration method, and node name, then sends the configuration to the machine and waits for the node to register in the cluster.
For automation, pass the settings as command-line flags:
d8 node add 192.168.1.20 --group worker \ --name worker-0 \ --disk-selector serial=S3Z8NB0K700002 \ --network dhcp \ --yesThe
--dry-runflag previews the result with secrets redacted and skips sending the configuration. -
Check that the node has registered in the cluster and its NodeConfig is applied:
d8 k get nodes d8 k get nodeconfigs.internal.deckhouse.io
The d8 node add command requires permission to read nodeconfigtemplates and network access to TCP port 50000 on the machine. The subsystem role d8:subsystem:cluster:manager grants this read permission through the d8:system-capability:node-manager:edit capability. Add machines from a trusted network because the installer accepts configuration on this port without authenticating the sender.