tenant-manager
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
-
By default, the Aqua Helm chart will deploy a database container. If you wish to use an external database, set
db.external.enabledto 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 -
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 -
If you are using the Aqua packaged DB container then:
- The
AQUA_ENV_SIZEvariable 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_SIZEis set to"S"; other allowed values are"M"and"L".
- The
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
| Parameter | Description | Default | Mandatory |
|---|---|---|---|
imageCredentials.create | Whether to create a new pull image secret | true | YES |
imageCredentials.name | Your Docker pull image secret name | aqua-registry-secret | YES |
imageCredentials.repositoryUriPrefix | Repository URI prefix for Docker Hub set docker.io | registry.aquasec.com | YES |
imageCredentials.registry | Registry URL for Docker Hub index.docker.io/v1/ | registry.aquasec.com | YES |
imageCredentials.username | Your Docker registry (Docker Hub, etc.) username | aqua-registry-secret | YES |
imageCredentials.password | Your Docker registry (Docker Hub, etc.) password | unset | YES |
platform | Specify the Kubernetes (k8s) platform acronym, allowed values are: aks, eks, gke, openshift, tkg, tkgi, k8s, rancher, gs, k3s, mke. | unset | YES |
clusterRole.roleRef | Cluster role reference name for cluster rolebinding | unset | NO |
admin.token | Use this Aqua license token | unset | NO |
admin.password | Use this Aqua admin password | unset | NO |
db.external.enabled | Avoid installing the packaged DB (Postgres container); use an external database instead | false | YES |
db.external.name | PostgreSQL DB name | unset | YESif db.external.enabled is set to true |
db.external.host | PostgreSQL DB hostname | unset | YESif db.external.enabled is set to true |
db.external.port | PostgreSQL DB port | unset | YESif db.external.enabled is set to true |
db.external.user | PostgreSQL DB username | unset | YESif db.external.enabled is set to true |
db.external.password | PostgreSQL DB password | unset | YESif db.external.enabled is set to true |
db.external.auditName | PostgreSQL DB audit name | unset | NO |
db.external.auditHost | PostgreSQL DB audit hostname | unset | NO |
db.external.auditPort | PostgreSQL DB audit port | unset | NO |
db.external.auditUser | PostgreSQL DB audit username | unset | NO |
db.external.auditPassword | PostgreSQL DB audit password | unset | NO |
db.passwordFromSecret.enabled | Enable to load DB passwords from ecrets | false | YES |
db.passwordFromSecret.dbPasswordName | Password secret name | null | NO |
db.passwordFromSecret.dbPasswordKey | Password secret key | null | NO |
db.passwordFromSecret.dbAuditPasswordName | Audit password secret name | null | NO |
db.passwordFromSecret.dbAuditPasswordKey | Audit password secret key | null | NO |
db.persistence.enabled | If true, a PVC (persistent volume claim) will be created | true | NO |
db.persistence.accessModes | Persistent volume access mode | ReadWriteOnce | NO |
db.persistence.size | Persistent volume size | 30Gi | NO |
db.persistence.storageClass | Persistent volume storage class | unset | NO |
db.image.repository | Docker image name to use | database | NO |
db.image.tag | Image tag to use | 2022.4 | NO |
db.image.pullPolicy | Kubernetes image pull policy | IfNotPresent | NO |
db.service.type | Kubernetes service type | ClusterIP | NO |
db.resources | Resource 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the charttenant-manager is pinned at v2022.4.1 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