squest
Squest is a self-service portal that works on top of Red Hat Ansible Automation Platform/AWX.
About this chart
squest
Squest is a self-service portal that works on top of Red Hat Ansible Automation Platform/AWX.
TL;DR;
helm repo add christianhuth https://charts.christianhuth.de
helm repo update
helm install my-release christianhuth/squest
Or install it from the OCI registry:
helm install my-release oci://ghcr.io/christianhuth/helm-charts/squest
Introduction
This chart bootstraps Squest using the Helm package manager.
Prerequisites
- Kubernetes 1.26+
- The mariadb-operator if the bundled MariaDB database is used (
mariadb.enabled: true, the default)
Installing the mariadb-operator
The chart bundles the database as a custom resource of the mariadb-operator (via the upstream chart mariadb-cluster). The operator itself is not part of this chart, as it is installed once per Kubernetes cluster:
helm upgrade --install mariadb-operator-crds oci://ghcr.io/mariadb-operator/charts/mariadb-operator-crds --namespace mariadb-operator --create-namespace
helm upgrade --install mariadb-operator oci://ghcr.io/mariadb-operator/charts/mariadb-operator --namespace mariadb-operator --wait
RabbitMQ (cloudpirates/rabbitmq) and Valkey (valkey/valkey) are bundled as regular subcharts and don't need an operator.
Installing the Chart
To install the chart with the release name my-release:
helm repo add christianhuth https://charts.christianhuth.de
helm repo update
helm install my-release christianhuth/squest
The chart is also published as an OCI artifact which can be installed like this:
helm install my-release oci://ghcr.io/christianhuth/helm-charts/squest
These commands deploy Squest on the Kubernetes cluster in the default configuration. The Values section lists the values that can be configured during installation.
Tip: List all releases using
helm list
Uninstalling the Chart
To uninstall the my-release deployment:
helm uninstall my-release
The command removes all the Kubernetes components associated with the chart and deletes the release.
Configuring the Dependencies
Squest needs a MariaDB (or MySQL) database, a RabbitMQ message broker and a Redis-compatible cache. Each of them is either bundled with the chart or provided externally. Passwords are read from Secrets, using existing Secrets is recommended for production.
MariaDB
Create a Secret containing the password of the database user and reference it in your values:
kubectl create secret generic squest-database --from-literal=password='<password>'
mariadb:
mariadb:
passwordSecretKeyRef:
name: squest-database
key: password
generate: false
If no Secret is referenced, the operator generates a random password and stores it in the Secret <release>-mariadb-password. By default the database runs as a Galera cluster with 3 instances. All other settings are passed to the upstream chart, see its values and the MariaDB API reference.
The image tag only pins the MariaDB release series (by default the long-term support release 12.3). To upgrade to another release series, change the tag of mariadb.mariadb.image. The operator migrates the system schema on the rollout (updateStrategy.mariadbAutoUpgradeEnabled). Downgrades are not supported by MariaDB, so take a backup before upgrading.
RabbitMQ
Create a Secret containing the password of the RabbitMQ user and reference it in your values. Squest builds its broker URL from the password without encoding it, so it must only contain URL-safe characters (A-Z, a-z, 0-9, -, ., _, ~):
kubectl create secret generic squest-rabbitmq \
--from-literal=password='<password>' \
--from-literal=erlang-cookie='<random string>'
rabbitmq:
auth:
username: squest
existingSecret: squest-rabbitmq
existingPasswordKey: password
If no Secret is referenced, the chart generates a random password and Erlang cookie and stores them in the Secret <release>-rabbitmq. By default RabbitMQ runs as a cluster of 3 instances. All other settings are passed to the upstream chart, see its values.
Valkey
By default Valkey requires the inline password squest for the user default. For production, create a Secret containing the password and reference it in your values:
kubectl create secret generic squest-valkey --from-literal=password='<password>'
valkey:
auth:
enabled: true
usersExistingSecret: squest-valkey
aclUsers:
default:
permissions: "~* &* +@all"
passwordKey: password
password: ""
Like for RabbitMQ, the password must only contain URL-safe characters. All other settings are passed to the upstream chart, see its values.
External Services
Disable the bundled service and configure the external one with externalDatabase.*, externalRabbitmq.* or externalRedis.*, e.g.:
mariadb:
enabled: false
externalDatabase:
hostname: mariadb.example.com
port: 3306
database: squest
username: squest
existingSecret: squest-database
existingSecretPasswordKey: password
Instead of existingSecret you can set password, which lets the chart create the Secret.
Values
| Key | Type | Default | Description |
|---|---|---|---|
| celery.beat.affinity | object | {} | Affinity settings for pod assignment |
| celery.beat.autoscaling.enabled | bool | false | |
| celery.beat.autoscaling.maxReplicas | int | 100 | |
| celery.beat.autoscaling.minReplicas | int | 1 | |
| celery.beat.autoscaling.targetCPUUtilizationPercentage | int | 80 | |
| celery.beat.config.django.debug | bool | false | Django DEBUG mode. |
| celery.beat.config.django.gunicornWorkers | int | 4 | Number of workers used by Gunicorn process in charge of serving client connection. Increase the number of worker threads to serve more clients concurrently |
| celery.beat.deploymentStrategy | object | {"type":"Recreate"} | Update strategy for the Celery beat deployment. Defaults to Recreate, so that two schedulers never run at the same time. |
| celery.beat.extraEnv | list | [] | additional environment variables to be added to the pods. See https://hewlettpackard.github.io/squest/latest/configuration/squest_settings for a complete list. |
| celery.beat.extraVolumeMounts | list | [] | additional volumeMounts to be added to the pods |
| celery.beat.extraVolumes | list | [] | additional volumes to be added to the pods |
| celery.beat.image.pullPolicy | string | "Always" | image pull policy |
| celery.beat.image.registry | string | "quay.io" | image registry |
| celery.beat.image.repository | string | "hewlettpackardenterprise/squest" | image repository |
| celery.beat.image.tag | string | "2.8.5" | Overrides the image tag |
| celery.beat.nodeSelector | object | {} | Node labels for pod assignment |
| celery.beat.podAnnotations | object | {} | Annotations to be added to pods |
| celery.beat.podLabels | object | {} | Labels to be added to pods |
| celery.beat.podSecurityContext | object | {} | pod-level security context |
| celery.beat.replicaCount | int | 1 | Number of replicas |
| celery.beat.resources | object | {} | Resource limits and requests for the pods. |
| celery.beat.revisionHistoryLimit | int | 10 | The number of old ReplicaSets to retain |
| celery.beat.securityContext | object | {} | container-level security context |
| celery.beat.service.port | int | 8080 | Kubernetes port where service is exposed |
| celery.beat.service.type | string | "ClusterIP" | Kubernetes service type |
| celery.beat.serviceAccount.annotations | object | {} | Annotations to add to the service account |
| celery.beat.serviceAccount.create | bool | true | Specifies whether a service account should be created |
| celery.beat.serviceAccount.name | string | "" | The name of the service account to use If not set and create is true, a name is generated using the fullname template |
| celery.beat.tolerations | list | [] | Toleration labels for pod assignment |
| celery.worker.affinity | object | {} | Affinity settings for pod assignment |
| celery.worker.autoscaling.enabled | bool | false | |
| celery.worker.autoscaling.maxReplicas | int | 100 | |
| celery.worker.autoscaling.minReplicas | int | 1 | |
| celery.worker.autoscaling.targetCPUUtilizationPercentage | int | 80 | |
| celery.worker.config.django.debug | bool | false | Django DEBUG mode. |
| celery.worker.config.django.gunicornWorkers | int | 4 | Number of workers used by Gunicorn process in charge of serving client connection. Increase the number of worker threads to serve more clients concurrently |
| celery.worker.deploymentStrategy | object | {} | Update strategy for the Celery worker deployment |
| celery.worker.extraEnv | list | [] | additional environment variables to be added to the pods. See https://hewlettpackard.github.io/squest/latest/configuration/squest_settings for a complete list. |
| celery.worker.extraVolumeMounts | list | [] | additional volumeMounts to be added to the pods |
| celery.worker.extraVolumes | list | [] | additional volumes to be added to the pods |
| celery.worker.image.pullPolicy | string | "Always" | image pull policy |
| celery.worker.image.registry | string | "quay.io" | image registry |
| celery.worker.image.repository | string | "hewlettpackardenterprise/squest" | image repository |
| celery.worker.image.tag | string | "2.8.5" | Overrides the image tag |
| celery.worker.nodeSelector | object | {} | Node labels for pod assignment |
| celery.worker.podAnnotations | object | {} | Annotations to be added to pods |
| celery.worker.podLabels | object | {} | Labels to be added to pods |
| celery.worker.podSecurityContext | object | {} | pod-level security context |
| celery.worker.replicaCount | int | 1 | Number of replicas |
| celery.worker.resources | object | {} | Resource limits and requests for the pods. |
| celery.worker.revisionHistoryLimit | int | 10 | The number of old ReplicaSets to retain |
| celery.worker.securityContext | object | {} | container-level security context |
| celery.worker.service.port | int | 8080 | Kubernetes port where service is exposed |
| celery.worker.service.type | string | "ClusterIP" | Kubernetes service type |
| celery.worker.serviceAccount.annotations | object | {} | Annotations to add to the service account |
| celery.worker.serviceAccount.create | bool | true | Specifies whether a service account should be created |
| celery.worker.serviceAccount.name | string | "" | The name of the service account to use If not set and create is true, a name is generated using the fullname template |
| celery.worker.tolerations | list | [] | Toleration labels for pod assignment |
| externalDatabase.database | string | "squest" | Name of the database to use |
| externalDatabase.existingSecret | string | "" | Name of an existing Secret containing the password of the user |
| externalDatabase.existingSecretPasswordKey | string | "password" | Key in the existing Secret containing the password |
| externalDatabase.hostname | string | "" | Hostname of the external MariaDB or MySQL database. Used if mariadb.enabled is false. |
| externalDatabase.password | string | "" | Password of the user. Ignored if externalDatabase.existingSecret is set. |
| externalDatabase.port | int | 3306 | Port of the external database |
| externalDatabase.username | string | "squest" | Name of the user to use |
| externalRabbitmq.existingSecret | string | "" | Name of an existing Secret containing the password. The password must only contain URL-safe characters. |
| externalRabbitmq.existingSecretPasswordKey | string | "password" | Key in the existing Secret containing the password |
| externalRabbitmq.hostname | string | "" | Hostname of the external RabbitMQ server. Used if rabbitmq.enabled is false. |
| externalRabbitmq.password | string | "" | Password of the user. Ignored if externalRabbitmq.existingSecret is set. Must only contain URL-safe characters. |
| externalRabbitmq.port | int | 5672 | AMQP port of the external RabbitMQ server |
| externalRabbitmq.username | string | "squest" | Name of the user to use |
| externalRabbitmq.vhost | string | "/" | Virtual host to use |
| externalRedis.existingSecret | string | "" | Name of an existing Secret containing the password. The password must only contain URL-safe characters. |
| externalRedis.existingSecretPasswordKey | string | "password" | Key in the existing Secret containing the password |
| externalRedis.hostname | string | "" | Hostname of the external Redis or Valkey server. Used if valkey.enabled is false. |
| externalRedis.password | string | "" | Password of the user. Ignored if externalRedis.existingSecret is set. Must only contain URL-safe characters. |
| externalRedis.port | int | 6379 | Port of the external server |
| externalRedis.username | string | "default" | Name of the user to use |
| fullnameOverride | string | "" | String to fully override "squest.fullname" |
| imagePullSecrets | list | [] | If defined, uses a Secret to pull an image from a private Docke |
Deploy squest with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has squest on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartsquest is pinned at v7.1.6 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply