Inventory

Listing the machines in the cluster and the role each one plays
You're viewing a development version of manager, the latest released version is 1.6.2

The current page Inventory doesn't exist in version 1.6.2 of the documentation for this product.
We can take you to the closest parent section instead: /docs/acd/components/manager/1.6.2/installation/

Overview

The inventory, /etc/acd/deploy/inventory.ini, lists every machine in the cluster and its role. acd-deploy init creates it as a commented example. Edit it before the first acd-deploy apply, and again whenever you add a machine.

Each machine is one line under the heading for its role:

[server]
manager-1 ansible_host=192.0.2.11
manager-2 ansible_host=192.0.2.12
manager-3 ansible_host=192.0.2.13

[agent]
manager-4 ansible_host=192.0.2.14

[director]
  • The first word is the machine’s name. Use its hostname.
  • ansible_host is the address acd-deploy reaches the machine on over SSH. It does not decide which network the cluster uses: see Site Settings for that.
  • Everything after a # is a comment, and indentation does not matter.

Important: The inventory also has a [director] section. Leave it empty. Installing the CDN Director in Kubernetes is not supported in this release. CDN Directors run on their own machines and are listed in external_directors in Site Settings.

In the Terminal Interface

The Inventory tab lists the machines. Press a to add one, and fill in “Name”, “Address”, “Base role” (server or agent) and “Extra role” (leave it at “(none)”: the playbook does not support machines in [director] yet). Press v for the advanced settings. s saves the form and Esc leaves it. Press ⏎ on a machine to edit it and d to delete it from the draft.

  • Servers come in pairs: adding a server to an odd number of servers asks for a second one, so that the number stays odd. An even number blocks the apply.
  • SSH: the “SSH” column shows key ok when acd-deploy can log in without a password. Anything else blocks the apply. With password only, press S to install your key. It takes effect at once, not through Apply, and asks for the password once without storing it.
  • Installed machines: a machine that is part of the installed cluster cannot be deleted here, and its name, base role and cluster address are locked. See Changing the Cluster.

Apply with A on the Apply tab: see Running acd-deploy.

Roles

Servers

Servers run the Kubernetes control plane and the cluster datastore, and by default also run the CDN Manager’s workloads.

  • The first server listed is the one you run acd-deploy apply on. It holds the ISO and the configuration folder.
  • The number of servers must be odd, so the control plane can always reach a majority. Use three for production: the cluster then survives losing any one machine. One server is enough for a lab, with no redundancy.
  • acd-deploy stops with [ACD-INVENTORY-EVEN-SERVERS] on an even number, and with [ACD-INVENTORY-NO-SERVER] if there is none.

Agents

Agents run workloads only: they add capacity, but take no part in the control plane. List any machines beyond the servers under [agent], or leave the section empty.

To add an agent to a running cluster, add its line under [agent], set up passwordless SSH to it from the first server, and run acd-deploy apply again. See Changing the Cluster.

A machine cannot be listed under both [server] and [agent] ([ACD-INVENTORY-SERVER-AND-AGENT]). Changing a machine’s role on a running cluster takes a few extra steps: see Changing a Machine’s Role.

How Many of Each

  • Three servers are enough for most clusters. The cluster then survives losing any one server. You are unlikely to need more than five: five servers survive losing two, and more add little except overhead.
  • Add servers to improve redundancy, two at a time, since the count must stay odd.
  • Add agents to expand capacity. Agents take on workloads without adding to the control plane, so they are the way to grow a cluster.

Per-Machine Options

Each option is added to the end of a machine’s line, separated by a space. None is needed for a normal installation.

node_ip and node_external_ip

The machine’s cluster address (the one other machines reach it on) and its public address (the one clients use). Both are detected automatically:

  • The public address is the address of the interface holding the default route.
  • The cluster address is the machine’s address inside backplane_network if that is set, and otherwise its public address.

Set them only to correct one machine where the wrong address is chosen:

manager-2 ansible_host=192.0.2.12 node_ip=10.10.0.12

Every machine’s cluster address must be on one network that all of them share. acd-deploy stops with [ACD-BACKPLANE-SPLIT] before changing anything if they are not.

Important: These addresses are locked at the first installation. Changing one later means reinstalling the cluster. See Locked at First Install.

node_labels

Your own Kubernetes labels for the machine, as a name-and-value mapping in single quotes:

manager-1 ansible_host=192.0.2.11 node_labels='{"rack": "a1"}'

For example, zone labels for Topology Aware Hints are described in the Performance Tuning Guide.

node_taints

Keeps ordinary workloads off the machine, for a server dedicated to the control plane. The platform’s own cluster services tolerate the taint below and keep running there. The value is a list in single quotes:

manager-1 ansible_host=192.0.2.11 node_taints='["CriticalAddonsOnly=true:NoSchedule"]'

Use it only when there are enough other machines to run the workloads, for example three tainted servers and at least three agents. Never taint every machine.

SSH Access

acd-deploy logs in to every machine in the inventory from the first server, the first server included, without a password prompt. For each machine, on the first server:

ssh-copy-id root@<machine address>
ssh -o BatchMode=yes root@<machine address> true

The second command must succeed without a prompt. Otherwise acd-deploy stops with UNREACHABLE for that machine.

Important: acd-deploy logs in as root on every machine. Logging in as another account is not supported yet.