squest

by christianhuth

Helm chartv7.1.6App 1.31.10-alpineVerified publisher

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

KeyTypeDefaultDescription
celery.beat.affinityobject{}Affinity settings for pod assignment
celery.beat.autoscaling.enabledboolfalse
celery.beat.autoscaling.maxReplicasint100
celery.beat.autoscaling.minReplicasint1
celery.beat.autoscaling.targetCPUUtilizationPercentageint80
celery.beat.config.django.debugboolfalseDjango DEBUG mode.
celery.beat.config.django.gunicornWorkersint4Number 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.deploymentStrategyobject{"type":"Recreate"}Update strategy for the Celery beat deployment. Defaults to Recreate, so that two schedulers never run at the same time.
celery.beat.extraEnvlist[]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.extraVolumeMountslist[]additional volumeMounts to be added to the pods
celery.beat.extraVolumeslist[]additional volumes to be added to the pods
celery.beat.image.pullPolicystring"Always"image pull policy
celery.beat.image.registrystring"quay.io"image registry
celery.beat.image.repositorystring"hewlettpackardenterprise/squest"image repository
celery.beat.image.tagstring"2.8.5"Overrides the image tag
celery.beat.nodeSelectorobject{}Node labels for pod assignment
celery.beat.podAnnotationsobject{}Annotations to be added to pods
celery.beat.podLabelsobject{}Labels to be added to pods
celery.beat.podSecurityContextobject{}pod-level security context
celery.beat.replicaCountint1Number of replicas
celery.beat.resourcesobject{}Resource limits and requests for the pods.
celery.beat.revisionHistoryLimitint10The number of old ReplicaSets to retain
celery.beat.securityContextobject{}container-level security context
celery.beat.service.portint8080Kubernetes port where service is exposed
celery.beat.service.typestring"ClusterIP"Kubernetes service type
celery.beat.serviceAccount.annotationsobject{}Annotations to add to the service account
celery.beat.serviceAccount.createbooltrueSpecifies whether a service account should be created
celery.beat.serviceAccount.namestring""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.tolerationslist[]Toleration labels for pod assignment
celery.worker.affinityobject{}Affinity settings for pod assignment
celery.worker.autoscaling.enabledboolfalse
celery.worker.autoscaling.maxReplicasint100
celery.worker.autoscaling.minReplicasint1
celery.worker.autoscaling.targetCPUUtilizationPercentageint80
celery.worker.config.django.debugboolfalseDjango DEBUG mode.
celery.worker.config.django.gunicornWorkersint4Number 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.deploymentStrategyobject{}Update strategy for the Celery worker deployment
celery.worker.extraEnvlist[]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.extraVolumeMountslist[]additional volumeMounts to be added to the pods
celery.worker.extraVolumeslist[]additional volumes to be added to the pods
celery.worker.image.pullPolicystring"Always"image pull policy
celery.worker.image.registrystring"quay.io"image registry
celery.worker.image.repositorystring"hewlettpackardenterprise/squest"image repository
celery.worker.image.tagstring"2.8.5"Overrides the image tag
celery.worker.nodeSelectorobject{}Node labels for pod assignment
celery.worker.podAnnotationsobject{}Annotations to be added to pods
celery.worker.podLabelsobject{}Labels to be added to pods
celery.worker.podSecurityContextobject{}pod-level security context
celery.worker.replicaCountint1Number of replicas
celery.worker.resourcesobject{}Resource limits and requests for the pods.
celery.worker.revisionHistoryLimitint10The number of old ReplicaSets to retain
celery.worker.securityContextobject{}container-level security context
celery.worker.service.portint8080Kubernetes port where service is exposed
celery.worker.service.typestring"ClusterIP"Kubernetes service type
celery.worker.serviceAccount.annotationsobject{}Annotations to add to the service account
celery.worker.serviceAccount.createbooltrueSpecifies whether a service account should be created
celery.worker.serviceAccount.namestring""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.tolerationslist[]Toleration labels for pod assignment
externalDatabase.databasestring"squest"Name of the database to use
externalDatabase.existingSecretstring""Name of an existing Secret containing the password of the user
externalDatabase.existingSecretPasswordKeystring"password"Key in the existing Secret containing the password
externalDatabase.hostnamestring""Hostname of the external MariaDB or MySQL database. Used if mariadb.enabled is false.
externalDatabase.passwordstring""Password of the user. Ignored if externalDatabase.existingSecret is set.
externalDatabase.portint3306Port of the external database
externalDatabase.usernamestring"squest"Name of the user to use
externalRabbitmq.existingSecretstring""Name of an existing Secret containing the password. The password must only contain URL-safe characters.
externalRabbitmq.existingSecretPasswordKeystring"password"Key in the existing Secret containing the password
externalRabbitmq.hostnamestring""Hostname of the external RabbitMQ server. Used if rabbitmq.enabled is false.
externalRabbitmq.passwordstring""Password of the user. Ignored if externalRabbitmq.existingSecret is set. Must only contain URL-safe characters.
externalRabbitmq.portint5672AMQP port of the external RabbitMQ server
externalRabbitmq.usernamestring"squest"Name of the user to use
externalRabbitmq.vhoststring"/"Virtual host to use
externalRedis.existingSecretstring""Name of an existing Secret containing the password. The password must only contain URL-safe characters.
externalRedis.existingSecretPasswordKeystring"password"Key in the existing Secret containing the password
externalRedis.hostnamestring""Hostname of the external Redis or Valkey server. Used if valkey.enabled is false.
externalRedis.passwordstring""Password of the user. Ignored if externalRedis.existingSecret is set. Must only contain URL-safe characters.
externalRedis.portint6379Port of the external server
externalRedis.usernamestring"default"Name of the user to use
fullnameOverridestring""String to fully override "squest.fullname"
imagePullSecretslist[]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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartsquest is pinned at v7.1.6 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. 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