adminer
by Startechnica
Adminer is a full-featured database management tool written in PHP. Conversely to phpMyAdmin, it consist of a single file ready to deploy to the target server. Adminer is available for MySQL, MariaDB, PostgreSQL, SQLite, MS SQL, Oracle, Firebird, SimpleDB, Elasticsearch and MongoDB
About this chart
Helm chart for Adminer
Adminer (formerly phpMinAdmin) is a full-featured database management tool written in PHP. Conversely to phpMyAdmin, it consist of a single file ready to deploy to the target server. Adminer is available for MySQL, PostgreSQL, SQLite, MS SQL, Oracle, Firebird, SimpleDB, Elasticsearch and MongoDB.
This chart is not maintained by the upstream project and any issues with the chart should be raised here
TL;DR
helm repo add startechnica https://startechnica.github.io/apps
helm install adminer startechnica/adminer
Prerequisites
- Kubernetes 1.24+
- Helm 3.10.0+
Installing the Chart
To install the chart with the release name adminer on adminer namespace:
helm repo add startechnica https://startechnica.github.io/apps
helm install adminer startechnica/adminer --namespace adminer --create-namespace
These commands deploy Adminer on the Kubernetes cluster in the default configuration.
Tip: List all releases using
helm list -A
Uninstalling the Chart
To uninstall/delete the adminer deployment:
helm delete adminer --namespace adminer
The command removes all the Kubernetes components associated with the chart and deletes the release.
Parameters
Global parameters
| Name | Description | Value |
|---|---|---|
global.imageRegistry | Global Docker image registry | "" |
global.imagePullSecrets | Global Docker registry secret names as an array | [] |
global.storageClass | Global StorageClass for Persistent Volume(s) | "" |
global.compatibility.openshift.adaptSecurityContext | Adapt the securityContext sections for OpenShift restricted-v2 SCC. Allowed: auto, force, disabled | auto |
global.compatibility.omitEmptySeLinuxOptions | Remove seLinuxOptions from securityContexts when set to an empty object | false |
Common parameters
| Name | Description | Value |
|---|---|---|
kubeVersion | Force target Kubernetes version (using Helm capabilities if not set) | "" |
nameOverride | String to partially override adminer.fullname | "" |
fullnameOverride | String to fully override adminer.fullname | "" |
commonLabels | Labels to add to all deployed objects | {} |
commonAnnotations | Annotations to add to all deployed objects | {} |
clusterDomain | Default Kubernetes cluster domain | cluster.local |
extraDeploy | Array of extra objects to deploy with the release | [] |
diagnosticMode.enabled | Enable diagnostic mode (all probes will be disabled and the command will be overridden) | false |
diagnosticMode.command | Command to override all containers in the deployment | ["sleep"] |
diagnosticMode.args | Args to override all containers in the deployment | ["infinity"] |
Adminer Image parameters
| Name | Description | Value |
|---|---|---|
image.registry | Adminer image registry | docker.io |
image.repository | Adminer image repository | adminer |
image.tag | Adminer image tag (immutable tags are recommended) | 5.4.2-standalone |
image.pullPolicy | Adminer image pull policy | IfNotPresent |
image.pullSecrets | Specify docker-registry secret names as an array | [] |
image.debug | Specify if debug logs should be enabled | false |
Adminer Configuration parameters
| Name | Description | Value |
|---|---|---|
config.plugins | List of Adminer plugins to enable. YAML list (preferred) or pre-formatted space-separated string. The adminer.config.plugins helper joins lists for ADMINER_PLUGINS. | [] |
config.design | Bundled Adminer design name (ADMINER_DESIGN) | pepa-linha |
config.externalserver | [DEPRECATED — use config.defaultServer] Default upstream database server. Kept as fallback via the adminer.config.defaultServer helper. Slated for removal in 2.0. | "" |
config.defaultServer | Default value for the "Server" field on the login screen (ADMINER_DEFAULT_SERVER) | "" |
config.defaultDriver | Default value for the "System" field (ADMINER_DEFAULT_DRIVER). Recognised by login-servers / login-password-less plugins and derivative images. | "" |
config.defaultUsername | Default value for the "Username" field (ADMINER_DEFAULT_USERNAME). Requires a compatible plugin or derivative image. | "" |
config.defaultPassword | Default value for the "Password" field (ADMINER_DEFAULT_PASSWORD). Requires a compatible plugin or derivative image; consider sourcing from a Secret via extraEnvVarsSecret. | "" |
config.defaultDatabase | Default value for the "Database" field (ADMINER_DEFAULT_DATABASE). Requires a compatible plugin or derivative image. | "" |
config.autoLogin | Auto-submit the login form when used with login-servers / login-password-less plugins (ADMINER_AUTO_LOGIN) | false |
config.permanentLogin | Persist the Adminer login session across browser restarts (ADMINER_PERMANENT_LOGIN) | false |
config.baseUrl | Base URL Adminer is served from (ADMINER_BASE_URL). Used when running behind a path-based reverse proxy. | "" |
configuration | Inline Adminer configuration file content (rendered into a ConfigMap) | "" |
existingConfigmap | Name of existing ConfigMap with Adminer configuration. When set, the chart-rendered env-vars ConfigMap is skipped and the Deployment's envFrom references this CM. | "" |
extraStartupArgs | Extra default startup args | "" |
extraFlags | Adminer additional command line flags | "" |
initdbScripts | Dictionary of initdb scripts to run at first boot | {} |
initdbScriptsConfigMap | ConfigMap with the initdb scripts (overrides initdbScripts) | "" |
extraEnvVars | Extra environment variables to be set on Adminer containers | [] |
extraEnvVarsCM | Name of existing ConfigMap containing extra env vars | "" |
extraEnvVarsSecret | Name of existing Secret containing extra env vars | "" |
Adminer Authentication parameters
| Name | Description | Value |
|---|---|---|
auth.existingSecret | An already existing Secret containing auth info | "" |
auth.existingSecretPerPassword | Override existingSecret and other secret values per-key | {} |
Deployment / Workload parameters
| Name | Description | Value |
|---|---|---|
replicaCount | Number of Adminer pods. Ignored when horizontalPodAutoscaler.enabled is true. | 1 |
horizontalPodAutoscaler.enabled | Render an HPA and skip setting replicas on the Deployment | false |
horizontalPodAutoscaler.minReplicas | Lower bound for HPA-managed replica count | 1 |
horizontalPodAutoscaler.maxReplicas | Upper bound for HPA-managed replica count | 5 |
horizontalPodAutoscaler.targetCPU | Target average CPU utilization (percent). Set to "" to disable CPU-based scaling. | 80 |
horizontalPodAutoscaler.targetMemory | Target average memory utilization (percent). Set to "" to disable memory-based scaling. | 80 |
horizontalPodAutoscaler.metrics | Full HPA metrics list passthrough. When non-empty, takes precedence over targetCPU/targetMemory. | [] |
revisionHistoryLimit | Number of old ReplicaSets retained for rollback | 1 |
updateStrategy.type | Update strategy for the Adminer Deployment | RollingUpdate |
schedulerName | Alternative scheduler | "" |
terminationGracePeriodSeconds | Time in seconds the Adminer pod has to terminate gracefully | "" |
priorityClassName | Priority class name | "" |
hostAliases | Add deployment host aliases | [] |
deploymentAnnotations | Annotations to add to the deployment | {} |
Pod parameters
| Name | Description | Value |
|---|---|---|
automountServiceAccountToken | Mount Service Account token in pod | false |
podLabels | Extra labels for Adminer pods | {} |
podAnnotations | Adminer pod annotations | {} |
podAffinityPreset | Pod affinity preset. Ignored if affinity is set. Allowed: soft, hard | "" |
podAntiAffinityPreset | Pod anti-affinity preset. Ignored if affinity is set. Allowed: soft, hard | soft |
nodeAffinityPreset.type | Node affinity preset type. Allowed: soft, hard | "" |
nodeAffinityPreset.key | Node label key to match. Ignored if affinity is set. | "" |
nodeAffinityPreset.values | Node label values to match. Ignored if affinity is set. | [] |
affinity | Affinity for Adminer pods (overrides the presets above) | {} |
nodeSelector | Node labels for Adminer pods assignment | {} |
tolerations | Tolerations for Adminer pods assignment | [] |
topologySpreadConstraints | Topology Spread Constraints for Adminer pods assignment | {} |
Container parameters
| Name | Description | Value |
|---|---|---|
command | Override the default container command. Ignored when diagnosticMode.enabled. | [] |
args | Override the default container args. Ignored when diagnosticMode.enabled. | [] |
lifecycleHooks | Lifecycle hooks for the Adminer container(s) | {} |
containerPorts.http | Adminer HTTP container port | 8080 |
containerPorts.https | Adminer HTTPS container port | 8443 |
extraPorts | Extra ports for container deployment | [] |
podSecurityContext.enabled | Enable security context for Adminer pods | false |
podSecurityContext.fsGroup | Group ID for the mounted volumes' filesystem | 101 |
podSecurityContext.runAsUser | User ID for the Adminer pod | 101 |
containerSecurityContext.enabled | Enable Adminer container securityContext | false |
containerSecurityContext.capabilities | Linux capabilities to add/drop | {} |
containerSecurityContext.runAsUser | User ID for the Adminer container | 101 |
containerSecurityContext.runAsNonRoot | Set Adminer container's runAsNonRoot | true |
containerSecurityContext.readOnlyRootFilesystem | Mount the container's root filesystem as read-only | false |
containerSecurityContext.allowPrivilegeEscalation | Block child processes from gaining more privileges than the parent | false |
containerSecurityContext.seccompProfile | Seccomp profile applied to the container | {"type":"RuntimeDefault"} |
resourcesPreset | Container resources from a common preset (none, nano, micro, small, medium, large, xlarge, 2xlarge, gs-3xsmall, …). Ignored if resources is set. | gs-3xsmall |
resources | Container requests and limits (essential for production workloads) | {} |
startupProbe.enabled | Enable startupProbe | false |
startupProbe.initialDelaySeconds | Initial delay seconds for startupProbe | 120 |
startupProbe.periodSeconds | Period seconds for startupProbe | 15 |
startupProbe.timeoutSeconds | Timeout seconds for startupProbe | 5 |
startupProbe.failureThreshold | Failure threshold for startupProbe | 10 |
startupProbe.successThreshold | Success threshold for startupProbe | 1 |
livenessProbe.enabled | Enable livenessProbe | true |
livenessProbe.initialDelaySeconds | Initial delay seconds for livenessProbe | 120 |
livenessProbe.periodSeconds | Period seconds for livenessProbe | 60 |
livenessProbe.timeoutSeconds | Timeout seconds for livenessProbe | 2 |
livenessProbe.failureThreshold | Failure threshold for livenessProbe | 3 |
livenessProbe.successThreshold | Success threshold for livenessProbe | 1 |
readinessProbe.enabled | Enable readinessProbe | true |
readinessProbe.initialDelaySeconds | Initial delay seconds for readinessProbe | 10 |
readinessProbe.periodSeconds | Period seconds for readinessProbe | 10 |
readinessProbe.timeoutSeconds | Timeout seconds for readinessProbe | 1 |
readinessProbe.failureThreshold | Failure threshold for readinessProbe | 3 |
readinessProbe.successThreshold | Success threshold for readinessProbe | 1 |
customStartupProbe | Override default startup probe | {} |
customLivenessProbe | Override default liveness probe | {} |
customReadinessProbe | Override default readiness probe | {} |
startupWaitOptions | Override default builtin startup wait check options | {} |
extraVolumes | Additional volumes attached to the Adminer pod | [] |
extraVolumeMounts | Additional volume mounts attached to the Adminer container | [] |
initContainers | Additional init containers added to the Adminer pod. Useful for preparing shared volumes before the main container starts (e.g. assembling a combined CA bundle for a sidecar). Pair with extraVolumes/extraVolumeMounts. | [] |
sidecars | Additional sidecar containers added to the Adminer pod | [] |
Persistence parameters
PVC consumed by templates/PersistentVolumeClaim.yaml and auto-mounted into the Adminer container at persistence.mountPath. Adminer is stateless, so this is opt-in — typical use cases are persisting plugin/extension files or session storage.
| Name | Description | Value |
|---|---|---|
persistence.enabled | Render a PersistentVolumeClaim AND mount it at persistence.mountPath. When false, no PVC is created and the volume/volumeMount are skipped. | false |
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 v1.1.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