Skip to main content

Install the K3s Appliance

This page installs EKB on one machine with the offline tarball. A cluster of several machines is installed with the same tarball and the same command, with a few more flags: see Installing a cluster below and High availability (summary).

Before you begin​

ItemWhat you need
Operating systemA supported Ubuntu LTS or RHEL-compatible release with cgroups v2, and root access (sudo)
CPU, memory, diskAt least 4 CPUs, 14 GiB of RAM and 50 GiB free disk. These are provisional minimums, taken from the pods' resource requests and not from load tests; preflight warns below them. Use SSD or NVMe storage. See the installation guide for the sizing used for current deployments
NetworkAn IPv4 default route. Ports 6443, 10250, 30080, 30443 and 30801 free, and 80 and 443 free if you use a domain
TimeA synchronized clock (chrony or systemd-timesyncd)
Domain and certificateOptional but recommended: three DNS names pointing at the machine, and one certificate covering all three. We recommend a wildcard certificate, *.<domain> plus <domain>, so the three names never need a new one. File links and the document preview need the domain and a certificate (or your own S3): see File links and the storage address
Backup destinationRequired: a directory on another disk or an NFS mount, or an s3:// bucket. Or choose --no-offbox-backup for a proof of concept
The releaseThe tarball and its .sha256, and its .sig once signing is in place, carried into your network
warning

Every install must say where its backups go. A bare sudo ./install.sh stops with a usage error before it changes anything: give --backup-dest, or --no-offbox-backup for a proof of concept that has no backups.

Verify the tarball​

Put the files in one directory and check them before you extract.

sha256sum -c odin-onprem-<version>-<arch>.tar.zst.sha256

The checksum proves the download is whole. To prove it comes from Automation Anywhere, check the signature with the public key (odin-onprem-cosign.pub), which you obtain separately from the tarball:

cosign verify-blob --key odin-onprem-cosign.pub \
--signature odin-onprem-<version>-<arch>.tar.zst.sig \
odin-onprem-<version>-<arch>.tar.zst

cosign verify-blob needs the network, and it loads the whole tarball into memory: run it on a machine with more free RAM than the tarball's size.

Inside an air gap, the same check works with OpenSSL and no network, and reads the tarball as a stream:

base64 -d odin-onprem-<version>-<arch>.tar.zst.sig > odin-onprem.sig.der
openssl dgst -sha256 -verify odin-onprem-cosign.pub \
-signature odin-onprem.sig.der odin-onprem-<version>-<arch>.tar.zst
note

The signing key pair is created once by Automation Anywhere operations and the public key is then published with the release instructions. Until it exists, tarballs have no .sig and the checksum is the only check. install.sh itself verifies every file in the bundle's SHA256SUMS before it changes the machine, but it cannot verify the signature, because it ships inside the tarball.

Extract and run preflight​

tar --zstd -xf odin-onprem-<version>-<arch>.tar.zst
cd odin-onprem-<version>-<arch>
sudo ./install.sh preflight --domain odin.corp.example

preflight prints PASS, WARN or FAIL for each check, with the fix, and changes nothing. A FAIL stops an install; a WARN does not. It covers the CPU, memory and free disk, how fast the disk syncs writes, swap, the architecture, cgroup v2, the default route, the clock, the machine's host name, SELinux, firewalld, that the ports are free and, with your own S3, that its buckets exist and take writes. Give it the flags you will install with so it checks what that install needs. On a cluster node it adds the cluster's checks: the ports of the node's role, a slow disk as a FAIL on a server, that the API address answers, and the number of servers.

SELinux and firewalld​

On a RHEL-family host install.sh sets up two things itself, so there is nothing to do before it and nothing to download:

  • SELinux. On a host where SELinux is enforcing, install.sh installs the k3s-selinux policy from the bundle (the packages are in selinux/, so no network is needed), then tells k3s to use it. Where SELinux is not enforcing it does nothing. The bundle has the packages for RHEL, CentOS, Rocky Linux, AlmaLinux and Oracle Linux 8 and 9. On another distribution with SELinux enforcing, preflight fails before anything is written: install k3s-selinux yourself, then run install.sh.
  • firewalld. When firewalld is running, install.sh opens the TCP ports Odin needs on this machine (and, on a cluster node, its own ports and UDP 8472), trusts the pod and service networks of k3s (10.42.0.0/16, 10.43.0.0/16), and reloads firewalld once. When it is not running, it does nothing. It never removes a rule.

On a cluster, every server and worker does both. If your site manages its hosts itself, run install.sh --no-host-setup: nothing on the machine outside Odin's files is changed, and preflight prints what to do by hand.

tip

RHEL 8 and its rebuilds ship a tar without --zstd. Extract with zstd -dc odin-onprem-<version>-<arch>.tar.zst | tar -xf - instead.

Install​

sudo ./install.sh --domain odin.corp.example \
--tls-cert /etc/ssl/odin.crt --tls-key /etc/ssl/odin.key \
--backup-dest /mnt/odin-backups

The install runs fully offline. The first start imports every bundled image, which takes minutes on a slow disk, and the installer waits up to 15 minutes for the node to be Ready (sudo ODIN_READY_TIMEOUT_SECONDS=1800 ./install.sh ... waits longer). Re-running install.sh never regenerates the credentials, so existing data survives.

Then check it:

sudo ./install.sh status
curl --resolve odin.corp.example:443:127.0.0.1 -k https://odin.corp.example/

status exits 0 when everything is healthy and 1 when not. The routes match only their own host names, so test with --resolve, not the machine's IP address.

Options​

Flags accept --flag value or --flag=value. A mistake on the command line exits with the usage text before anything changes.

FlagWhat it does
--domainServes the web app and login at https://<host>; the routes match only their own host names, so EKB does not load over the bare IP address. Port 80 is redirected to 443. Without it, EKB answers on the machine's own ports (web 30080, API 30801) and works from that machine only, and files stored in the bundled MinIO cannot be downloaded: for a proof of concept only. Downloads and the in-app document preview need a certificate too (--tls-cert, below)
--api-domain, --files-domainThe API and file-download hosts. Defaults: api.<domain> and files.<domain>. With the bundled MinIO the files host is also the one address the application itself uses for its storage (below)
--s3-endpoint, --s3-creds, --s3-region, --s3-bucket-prefixYour own S3 instead of the bundled MinIO: see below
--db-url, --db-ca-cert, --redis-urlYour own PostgreSQL (and the CA certificate that signed its certificate) and Redis instead of the bundled ones: see below
--smtp-credsThe login for your mail server, which password reset needs: a file of two lines, SMTP_USERNAME=... and SMTP_PASSWORD=.... It is optional: whether it is needed depends on your mail server, and without it password-reset mail goes out unauthenticated. The mail host, port and sender come from your bundle's settings; port 465 (implicit TLS) is not supported, use 587 (STARTTLS). The path is saved, never the content
--monitoringlocal (SigNoz in the cluster), cloud (the agent sends to a SigNoz Cloud, with --signoz-endpoint and --signoz-key-file) or off. The bundle needs the monitoring profile
--tls-cert, --tls-keyYour PEM certificate and key; both, and only with --domain. The certificate must cover all three host names. For a private CA, end the file with the CA's root certificate (see below). Without them a self-signed certificate is used, which browsers refuse, and file links do not open: for a proof of concept only
--backup-destWhere scheduled backups go: a directory or s3://bucket/prefix
--backup-scheduledaily (default) or hourly
--backup-s3-credsThe credentials file for an s3:// backup destination
--backup-s3-regionThe region of the s3:// destination's bucket, when it is not k3s's default. A setting of the whole cluster
--no-offbox-backupNo off-box backups, on purpose
--yesNever prompt

With the bundled MinIO, a domain and a certificate, the storage has one address for the application and for browsers: https://files.<domain> (the --files-domain host). Every link the application hands out is then one a browser can open, and the application reaches its own storage at the same address, through Traefik and TLS. The installer sets this up on its own: it adds a rule to the cluster's DNS that sends the files host to Traefik, and it gives the application a trust bundle made of this machine's CA bundle and the self-signed certificates in your --tls-cert file.

Before it changes anything, the installer checks that the application can verify your certificate against that bundle. A certificate from a public CA passes. For a private CA, end the --tls-cert file with the CA's root certificate:

cat server.crt intermediate.crt root.crt > fullchain.pem
sudo ./install.sh --domain odin.corp.example \
--tls-cert fullchain.pem --tls-key server.key \
--backup-dest /mnt/odin-backups

or install the CA in this machine's trust store first (update-ca-certificates on Ubuntu, update-ca-trust on RHEL). When the check fails, the install stops with nothing changed and names three ways out: append the CA's root to the file, trust the CA on this machine, or use your own S3 (--s3-endpoint), which works only when its certificate is one the server image already trusts (a public CA): with it no trust bundle is mounted, and the installer has no option for an S3's private CA.

  • Renew a certificate by running install.sh again with the new files (--tls-cert, --tls-key, or upgrade with them). That rebuilds the trust bundle and restarts the application when the bundle changed. The bundle holds this machine's CA store and the self-signed certificates of your file, never a CA-issued leaf, so a renewal under the same CA changes nothing in it and restarts nothing, which is correct. Because all traffic between the application and its storage goes through Traefik and TLS, a certificate that has expired or been replaced leaves the application unable to reach its storage until you do.
  • A domain without a certificate does not open file links: Traefik then serves its own throwaway certificate, which nothing can be told to trust. The installer says so.
  • With --s3-endpoint the application uses your S3 and none of this applies.
  • sudo ./install.sh status shows the storage address and, for the shared one, whether the DNS rule and the trust bundle are in place.

Your own S3, PostgreSQL and Redis​

By default the bundle runs its own MinIO, PostgreSQL and Redis. Each can be replaced, and the bundled one is then not started:

sudo ./install.sh --domain odin.corp.example \
--s3-endpoint https://s3.corp.example --s3-bucket-prefix odin- \
--s3-region eu-west-1 --s3-creds /root/odin-s3.env \
--db-url 'postgres://odin:p%40ssw0rd@db.corp.example:5432/odin?sslmode=require' \
--redis-url 'redis://:r3dis-pw@redis.corp.example:6379/0' \
--backup-dest /mnt/odin-backups
  • The --s3-creds file has exactly two lines, ACCESS_KEY_ID=... and SECRET_ACCESS_KEY=....
  • --db-url is postgres://USER:PASSWORD@HOST:PORT/DB?sslmode=MODE with the password percent-encoded. It serves the application and the login service. With sslmode=verify-ca or verify-full give the CA certificate that signed the database's certificate with --db-ca-cert /root/db-ca.pem (a PEM file; a sslrootcert= in the URL means the same). EKB mounts it in every workload that talks to the database.
  • The backups skip a database or an S3 you provide, and say so. Back them up yourself.

Buckets on your S3. EKB keeps each kind of file in a bucket of its own. Create these fourteen buckets before you install; the installer never creates them, and one shared bucket is not supported:

kb-raw-files user-images saml-metadata
usage-reports project-exports project-imports
templates meetings dalle-generated
sandbox-downloads workflow-temp-files workflow-outputs
custom-python-packages global-notification-media

Where those names are not yours to take, as on AWS, give --s3-bucket-prefix odin- and create every name with the prefix in front: odin-kb-raw-files, odin-user-images and so on. sudo ./install.sh help prints the list.

preflight writes and removes a small probe object in each bucket, and reports a FAIL, which stops the install, for every bucket that is missing or that the key cannot write to. Run it with the flags you will install with.

Permissions for the key.

  • s3:ListBucket and s3:GetBucketLocation on each bucket.
  • s3:GetObject, s3:PutObject and s3:DeleteObject on the objects of each bucket.
  • s3:AbortMultipartUpload on the same objects. Without it, a failed multipart upload leaves its parts in the bucket, where they are not listed but are billed.
  • The right to list buckets, which on AWS is s3:ListAllMyBuckets and is granted on all resources, not on one bucket. EKB asks for that list before it saves a generated image or a meeting recording, and those uploads fail without it. preflight reports a WARN when the key lacks it.

What was saved​

A successful install writes the settings it was given to /etc/odin/install.env, readable by root only. upgrade and status read it, so you do not repeat the flags. It holds the paths of your certificate and key files, never their contents, but --db-url and --redis-url are stored as you gave them, passwords included. Treat the file as a secret.

Installing a cluster​

A cluster is three or five servers plus any number of workers, in one site. Every machine gets the same tarball, extracted, and runs preflight first. The first server starts the cluster and writes two join files; the others join with them.

# the first server (--vip is the API address: an unused IPv4 address on the servers' network)
sudo ./install.sh --role server --init --vip 10.0.0.50 --ha \
--domain odin.corp.example \
--tls-cert /etc/ssl/odin.crt --tls-key /etc/ssl/odin.key \
--s3-endpoint https://s3.corp.example --s3-creds /root/odin-s3.env \
--backup-dest s3://odin-backups/site-a --backup-s3-creds /root/backup-s3.env

# each other server, one at a time, with the join file the first server wrote
sudo ./install.sh --role server --join 10.0.0.50 --token-file /root/join-server.env

# a worker
sudo ./install.sh --role worker --join 10.0.0.50 --token-file /root/join-worker.env
  • The first server waits for three servers. It prints the join commands, then waits up to an hour while you join the others. If it stops, a bare sudo ./install.sh on it continues.
  • A join file is a secret. It carries the cluster's tokens: copy it over a channel you trust and delete it afterwards. A token cannot be given on the command line.
  • A joining machine takes every setting from the cluster, so none of --domain, --tls-cert, --s3-*, --db-url, --backup-*, --monitoring and the like goes with --join. To change a setting later, run sudo ./install.sh with the flag on any server. To renew the certificate, give --tls-cert and --tls-key again: replacing the file in place changes nothing.
  • Your own load balancer can answer the API address instead of kube-vip: add --external-lb to the first server's command. With --domain it targets 443, or the NodePort 30443, on every node.
  • Take a node out with sudo ./install.sh remove-node <name> on another server; see High availability (summary).