tenant-manager

by deployment-aqua

Helm chartv2022.4.1App 2022.4Apache-2.0

A Helm chart for the Aqua Tenant Manager

About this chart

Aqua Security Tenant Manager Helm Chart

These are Helm charts for the deployment and maintenance of the Aqua Tenant Manager.

Contents

  • Aqua Security Tenant Manager Helm Chart
    • Contents
    • Prerequisites
      • Container registry credentials
      • PostgreSQL database
    • Installing the Chart
      • Installing Aqua Tenant Manager from GitHub Repo
      • Installing Aqua Tenant Manager from Helm Private Repository
    • Database
    • Configuring HTTPS for the Aqua Tenant Manager
    • Configurable variables
    • Issues and feedback

Prerequisites

Container registry credentials

See Container registry credentials.

PostgreSQL database

Aqua Security recommends implementing a highly-available PostgreSQL database. By default, the Tenant Manager chart will install a PostgreSQL database and attach it to persistent storage for POC usage and testing. For production use, you can override this default behavior and specify an existing PostgreSQL database by setting the following variables in values.yaml:

db:
  external:
    enabled: true
    name: example-aquasec
    host: aquasec-db
    port: 5432
    user: aquasec-db-username
    password: verysecret

Installing the Chart

Follow the steps in this section for production-grade deployments. You can either clone the aqua-helm GitHub repo or you can add our private Helm repository (https://helm.aquasec.com).

Installing Aqua Tenant Manager from Helm Private Repository

  • Add the Aqua Helm repository
helm repo add aqua-helm https://helm.aquasec.com
  • Check for available chart versions either from Changelog or by running the below command
helm search repo aqua-helm/tenant-manager --versions
  • Deploy the Aqua Tenant Manager
helm upgrade --install --namespace aqua tenant-manager aqua-helm/tenant-manager --set imageCredentials.username=<>,imageCredentials.password=<>,platform=<>

Database

  1. By default, the Aqua Helm chart will deploy a database container. If you wish to use an external database, set db.external.enabled to true and the following with appropriate values:

    1. db.external.name
    2. db.external.host
    3. db.external.port
    4. db.external.user
    5. db.external.password
    
  2. By default, the same database (Packaged DB Container | Managed DB like AWS RDS) will be used to host both the main DB and the audit DB. If you want to use a different database for the audit DB, set the following variables in the values.yaml file:

    1. db.external.auditName
    2. db.external.auditHost
    3. db.external.auditPort
    4. db.external.auditUser
    5. db.external.auditPassword      
    
  3. If you are using the Aqua packaged DB container then:

    • The AQUA_ENV_SIZE variable can be used to define the size of your DB container in terms of the number of connections and optimized configuration (but not the PV size). Choose the appropriate PV size as per your requirements.
    • By default, AQUA_ENV_SIZE is set to "S"; other allowed values are "M" and "L".

Configuring HTTPS for the Aqua Tenant Manager

By default, Aqua will generate a self-signed cert and will use the same for HTTPS communication. If you wish to use your own SSL/TLS certs, you can do this in two different ways:

e.g., LoadBalancer(Default): Use the AQUA_PUBLIC_KEY, AQUA_PRIVATE_KEY, and AQUA_ROOT_CA environment variables to specify the TLS cert path. Make sure to mount the TLS cert into the container.

Configurable variables

ParameterDescriptionDefaultMandatory
imageCredentials.createWhether to create a new pull image secrettrueYES
imageCredentials.nameYour Docker pull image secret nameaqua-registry-secretYES
imageCredentials.repositoryUriPrefixRepository URI prefix for Docker Hub set docker.ioregistry.aquasec.comYES
imageCredentials.registryRegistry URL for Docker Hub index.docker.io/v1/registry.aquasec.comYES
imageCredentials.usernameYour Docker registry (Docker Hub, etc.) usernameaqua-registry-secretYES
imageCredentials.passwordYour Docker registry (Docker Hub, etc.) passwordunsetYES
platformSpecify the Kubernetes (k8s) platform acronym, allowed values are: aks, eks, gke, openshift, tkg, tkgi, k8s, rancher, gs, k3s, mke.unsetYES
clusterRole.roleRefCluster role reference name for cluster rolebindingunsetNO
admin.tokenUse this Aqua license tokenunsetNO
admin.passwordUse this Aqua admin passwordunsetNO
db.external.enabledAvoid installing the packaged DB (Postgres container); use an external database insteadfalseYES
db.external.namePostgreSQL DB nameunsetYESif db.external.enabled is set to true
db.external.hostPostgreSQL DB hostnameunsetYESif db.external.enabled is set to true
db.external.portPostgreSQL DB portunsetYESif db.external.enabled is set to true
db.external.userPostgreSQL DB usernameunsetYESif db.external.enabled is set to true
db.external.passwordPostgreSQL DB passwordunsetYESif db.external.enabled is set to true
db.external.auditNamePostgreSQL DB audit nameunsetNO
db.external.auditHostPostgreSQL DB audit hostnameunsetNO
db.external.auditPortPostgreSQL DB audit portunsetNO
db.external.auditUserPostgreSQL DB audit usernameunsetNO
db.external.auditPasswordPostgreSQL DB audit passwordunsetNO
db.passwordFromSecret.enabledEnable to load DB passwords from ecretsfalseYES
db.passwordFromSecret.dbPasswordNamePassword secret namenullNO
db.passwordFromSecret.dbPasswordKeyPassword secret keynullNO
db.passwordFromSecret.dbAuditPasswordNameAudit password secret namenullNO
db.passwordFromSecret.dbAuditPasswordKeyAudit password secret keynullNO
db.persistence.enabledIf true, a PVC (persistent volume claim) will be createdtrueNO
db.persistence.accessModesPersistent volume access modeReadWriteOnceNO
db.persistence.sizePersistent volume size30GiNO
db.persistence.storageClassPersistent volume storage classunsetNO
db.image.repositoryDocker image name to usedatabaseNO
db.image.tagImage tag to use2022.4NO
db.image.pullPolicyKubernetes image pull policyIfNotPresentNO
db.service.typeKubernetes service typeClusterIPNO
db.resourcesResource requests and limits{}NO

Deploy tenant-manager with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has tenant-manager 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 charttenant-manager is pinned at v2022.4.1 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