adminer

by Ectobit

Helm chartv0.3.1App 6.0.1BSD-2-Clause-PatentVerified publisher

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

Values

KeyTypeDefaultDescription
affinityobject{}
autoscaling.enabledboolfalse
autoscaling.maxReplicasint100
autoscaling.minReplicasint1
autoscaling.targetCPUUtilizationPercentageint80
envobject{}
fullnameOverridestring""
image.pullPolicystring"IfNotPresent"
image.repositorystring"adminer"
image.tagstring""
imagePullSecretslist[]
ingress.annotationsobject{}
ingress.classNamestring""
ingress.enabledboolfalse
ingress.hosts[0].hoststring"chart-example.local"
ingress.hosts[0].paths[0].pathstring"/"
ingress.hosts[0].paths[0].pathTypestring"ImplementationSpecific"
ingress.tlslist[]
mysqlTlsobject{"caFilename":"ca.crt","enabled":false,"mountPath":"/etc/mysql-tls","secretName":""}Configure Adminer's login-ssl plugin for MySQL servers that require TLS.
mysqlTls.caFilenamestring"ca.crt"Filename of the CA certificate inside the mounted Secret.
mysqlTls.enabledboolfalseEnable mounting the MySQL CA Secret and loading the configured login-ssl plugin.
mysqlTls.mountPathstring"/etc/mysql-tls"Path where the MySQL TLS Secret is mounted in the Adminer container.
mysqlTls.secretNamestring""Name of the Secret containing the CA file. Required when mysqlTls.enabled is true.
nameOverridestring""
nodeSelectorobject{}
podAnnotationsobject{}
podSecurityContextobject{}
postgresqlTlsobject{"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.caKeystring"ca.crt"Secret key containing the CA certificate.
postgresqlTls.enabledboolfalseEnable mounting the PostgreSQL CA Secret, setting PGSSL* environment, and loading the configured login-ssl plugin.
postgresqlTls.mountPathstring"/etc/postgresql-tls"Path where the PostgreSQL TLS Secret is mounted in the Adminer container.
postgresqlTls.secretNamestring""Name of the Secret containing the CA file. Required when postgresqlTls.enabled is true.
postgresqlTls.sslModestring"verify-ca"PostgreSQL sslmode value passed to PGSSLMODE and Adminer's login-ssl plugin.
replicaCountint1
resourcesobject{}
securityContextobject{}
service.portint80
service.typestring"ClusterIP"
serviceAccount.annotationsobject{}
serviceAccount.createbooltrue

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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartadminer is pinned at v0.3.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