adminer
by Ectobit
Adminer Helm chart for Kubernetes
About this chart
adminer
Adminer Helm chart for Kubernetes
Add repository
helm repo add ectobit https://charts.ectobit.com
Install
helm install adminer ectobit/adminer
Helmfile
releases:
- name: adminer
chart: ectobit/adminer
namespace: default
values:
- ingress:
enabled: true
annotations:
kubernetes.io/ingress.class: nginx
hosts:
- host: adminer.your-domain.com
paths:
- path: /
pathType: Prefix
tls:
- secretName: your-domain-com-tls
hosts:
- adminer.your-domain.com
MySQL TLS
Set mysqlTls.enabled=true and mysqlTls.secretName to mount a CA Secret and
load Adminer's login-ssl plugin with the required constructor configuration.
Do not set ADMINER_PLUGINS=login-ssl; Adminer's stock plugin loader cannot
instantiate plugins that require constructor parameters.
env:
ADMINER_DEFAULT_SERVER: mysql
mysqlTls:
enabled: true
secretName: mysql-ca
PostgreSQL TLS
Set postgresqlTls.enabled=true and postgresqlTls.secretName to mount a CA
Secret, set PGSSLMODE and PGSSLROOTCERT, and load Adminer's login-ssl
plugin for PostgreSQL connections.
env:
ADMINER_DEFAULT_SERVER: postgresql
postgresqlTls:
enabled: true
secretName: postgresql-ca
Homepage: https://github.com/ectobit/charts
Source Code
- https://github.com/ectobit/charts/tree/main/adminer
- https://github.com/TimWolla/docker-adminer
- https://github.com/vrana/adminer
Values
| Key | Type | Default | Description |
|---|---|---|---|
| affinity | object | {} | |
| autoscaling.enabled | bool | false | |
| autoscaling.maxReplicas | int | 100 | |
| autoscaling.minReplicas | int | 1 | |
| autoscaling.targetCPUUtilizationPercentage | int | 80 | |
| env | object | {} | |
| fullnameOverride | string | "" | |
| image.pullPolicy | string | "IfNotPresent" | |
| image.repository | string | "adminer" | |
| image.tag | string | "" | |
| imagePullSecrets | list | [] | |
| ingress.annotations | object | {} | |
| ingress.className | string | "" | |
| ingress.enabled | bool | false | |
| ingress.hosts[0].host | string | "chart-example.local" | |
| ingress.hosts[0].paths[0].path | string | "/" | |
| ingress.hosts[0].paths[0].pathType | string | "ImplementationSpecific" | |
| ingress.tls | list | [] | |
| mysqlTls | object | {"caFilename":"ca.crt","enabled":false,"mountPath":"/etc/mysql-tls","secretName":""} | Configure Adminer's login-ssl plugin for MySQL servers that require TLS. |
| mysqlTls.caFilename | string | "ca.crt" | Filename of the CA certificate inside the mounted Secret. |
| mysqlTls.enabled | bool | false | Enable mounting the MySQL CA Secret and loading the configured login-ssl plugin. |
| mysqlTls.mountPath | string | "/etc/mysql-tls" | Path where the MySQL TLS Secret is mounted in the Adminer container. |
| mysqlTls.secretName | string | "" | Name of the Secret containing the CA file. Required when mysqlTls.enabled is true. |
| nameOverride | string | "" | |
| nodeSelector | object | {} | |
| podAnnotations | object | {} | |
| podSecurityContext | object | {} | |
| postgresqlTls | object | {"caKey":"ca.crt","enabled":false,"mountPath":"/etc/postgresql-tls","secretName":"","sslMode":"verify-ca"} | Configure Adminer's login-ssl plugin and libpq/PDO environment for PostgreSQL servers that require TLS. |
| postgresqlTls.caKey | string | "ca.crt" | Secret key containing the CA certificate. |
| postgresqlTls.enabled | bool | false | Enable mounting the PostgreSQL CA Secret, setting PGSSL* environment, and loading the configured login-ssl plugin. |
| postgresqlTls.mountPath | string | "/etc/postgresql-tls" | Path where the PostgreSQL TLS Secret is mounted in the Adminer container. |
| postgresqlTls.secretName | string | "" | Name of the Secret containing the CA file. Required when postgresqlTls.enabled is true. |
| postgresqlTls.sslMode | string | "verify-ca" | PostgreSQL sslmode value passed to PGSSLMODE and Adminer's login-ssl plugin. |
| replicaCount | int | 1 | |
| resources | object | {} | |
| securityContext | object | {} | |
| service.port | int | 80 | |
| service.type | string | "ClusterIP" | |
| serviceAccount.annotations | object | {} | |
| serviceAccount.create | bool | true |
Deploy adminer with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has adminer 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 chartadminer is pinned at v0.3.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