Skip to Content

Reaqt

Ascender Reaqt runs event-driven automation. A listener receives events such as syslog messages and webhooks, matches them against rule sets, and dispatches them to providers such as Ascender job templates. A separate web application provides the management interface and API. The installer deploys both, with a MariaDB database, into their own namespace.

What the installer deploys

In REAQT_NAMESPACE (default reaqt):

ResourceNamePurpose
Deploymentascender-reaqt-webWeb interface and API, on port 8080. reaqt_web_replicas pods
Deploymentascender-reaqt-listenerEvent listener, on port 5002. Always one pod
Deploymentascender-reaqt-dbMariaDB database, unless you use an external database
ConfigMapascender-reaqt-configApplication settings
Secretsascender-reaqt-keys, ascender-reaqt-db, ascender-reaqt-adminEncryption keys and listener token, database passwords, and the initial administrator password
Secretascender-reaqt-pull-secretDepot image pull secret
PersistentVolumeClaimascender-reaqt-db-dataDatabase storage, REAQT_PVC_SIZE_GB in size
Ingress or Routeascender-reaqtExposes Reaqt at REAQT_HOSTNAME

One host name serves both services: requests to /api/events go to the listener and everything else goes to the web application. Event sources send events to https://<REAQT_HOSTNAME>/api/events/<rule-set-slug>.

Configuration

REAQT_INSTALL: true REAQT_HOSTNAME: reaqt.example.com REAQT_NAMESPACE: reaqt REAQT_VERSION: latest reaqt_web_replicas: 1 REAQT_LISTENER_UID: listener-primary REAQT_LISTENER_NAME: "Primary Listener" REAQT_LISTENER_API_TOKEN: "<64 hexadecimal characters>" REAQT_SESSION_KEY: "<64 hexadecimal characters>" REAQT_SECRET_KEY: "<64 hexadecimal characters>" REAQT_DB_PASSWORD: "<database-password>" REAQT_DB_ROOT_PASSWORD: "<database-root-password>"
VariableDefaultDescription
REAQT_INSTALLfalseInstall Reaqt
REAQT_HOSTNAMEreaqt.example.comHost name of Reaqt. Required
REAQT_NAMESPACEreaqtKubernetes namespace for Reaqt
REAQT_VERSIONlatestImage tag of the Reaqt images
reaqt_web_replicas1Number of web pods
REAQT_LISTENER_UIDlistener-primaryUnique, stable identifier the listener registers with. Do not change it after installation
REAQT_LISTENER_NAMEPrimary ListenerDisplay name of the listener
REAQT_LISTENER_API_TOKENchangeme-listener-api-tokenShared bearer token the listener presents to the web application's /api/listener API. Use a strong value
REAQT_SESSION_KEYEmptySession cookie encryption key, 64 hexadecimal characters. When empty, the web application generates and stores its own
REAQT_SECRET_KEYEmptyKey that encrypts stored provider credentials, 64 hexadecimal characters. The installer gives the same value to the web application and the listener
REAQT_DB_PASSWORDmydbpasswordPassword of the Reaqt database user
REAQT_DB_ROOT_PASSWORDmydbrootpasswordMariaDB root password, used only by the built-in database
REAQT_PVC_SIZE_GB10Size of the database volume, in GB. Set before the first installation
REAQT_PVC_STORAGE_CLASSCluster defaultStorageClass of the database volume. Applies on OCP
REAQT_WEB_IMAGE, REAQT_LISTENER_IMAGE, REAQT_DB_IMAGEdepot.ciq.com/ascender-pro/ascender-reaqt-images/ascender-reaqt/web, listener, dbImage repositories. Change them only to pull from a mirror

Generate the keys and passwords

config_vars.sh generates REAQT_LISTENER_API_TOKEN, REAQT_SESSION_KEY, REAQT_SECRET_KEY, REAQT_DB_PASSWORD, and REAQT_DB_ROOT_PASSWORD when they are empty or at their placeholder values, and asks for them in advanced mode (-a). If you write custom.config.yml by hand, generate each key and token with:

openssl rand -hex 32

Set the keys explicitly rather than leaving them empty. REAQT_SECRET_KEY in particular must stay the same for the life of the installation: provider credentials stored with one key cannot be decrypted with another, and any listener you run outside this installation must use the same key.

External database

Reaqt deploys its own MariaDB database by default. To use an existing MariaDB or MySQL server, set the connection variables. When REAQT_DB_HOST is anything other than ascender-reaqt-db, the installer does not deploy the database or its volume:

VariableDefaultDescription
REAQT_DB_HOSTascender-reaqt-dbDatabase host name, resolvable from the Reaqt pods
REAQT_DB_PORT3306Database port
REAQT_DB_NAMEreaqtDatabase name
REAQT_DB_USERNAMEascenderDatabase user
REAQT_DB_PASSWORDNoneDatabase user's password

Host name and TLS

The listener has no database access. It reads its configuration and writes its registration, heartbeats, event logs, and metrics through the web application's API at <k8s_lb_protocol>://<REAQT_HOSTNAME>, so REAQT_HOSTNAME must resolve from inside the cluster as well as from clients. An /etc/hosts entry on the control machine is not enough.

With k8s_lb_protocol: https, the installer configures the listener to require HTTPS for these calls. With http, it allows plain HTTP, which is only appropriate on a trusted network. Reaqt uses the certificate at tls_crt_path and tls_key_path, so it must cover REAQT_HOSTNAME.

Log in

Open https://<REAQT_HOSTNAME> and log in as admin. On the first start, the administrator password is set to ASCENDER_ADMIN_PASSWORD. It is applied only when the Reaqt database is first initialized, so changing ASCENDER_ADMIN_PASSWORD later has no effect; change the password in Reaqt instead.

The installed listener registers itself and appears on the Listeners page as REAQT_LISTENER_NAME.

Activate the license

Go to Administration > Settings > License, select the signed .json license file from CIQ, and click Upload. See Reaqt license.

Next steps

Create providers, rule sets, and rules, and point your event sources at the listener. See Getting started with Reaqt.