adminer

by Startechnica

Helm chartv1.1.1App 5.4.2Apache-2.0Verified publisher

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.

Overview of Adminer

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

NameDescriptionValue
global.imageRegistryGlobal Docker image registry""
global.imagePullSecretsGlobal Docker registry secret names as an array[]
global.storageClassGlobal StorageClass for Persistent Volume(s)""
global.compatibility.openshift.adaptSecurityContextAdapt the securityContext sections for OpenShift restricted-v2 SCC. Allowed: auto, force, disabledauto
global.compatibility.omitEmptySeLinuxOptionsRemove seLinuxOptions from securityContexts when set to an empty objectfalse

Common parameters

NameDescriptionValue
kubeVersionForce target Kubernetes version (using Helm capabilities if not set)""
nameOverrideString to partially override adminer.fullname""
fullnameOverrideString to fully override adminer.fullname""
commonLabelsLabels to add to all deployed objects{}
commonAnnotationsAnnotations to add to all deployed objects{}
clusterDomainDefault Kubernetes cluster domaincluster.local
extraDeployArray of extra objects to deploy with the release[]
diagnosticMode.enabledEnable diagnostic mode (all probes will be disabled and the command will be overridden)false
diagnosticMode.commandCommand to override all containers in the deployment["sleep"]
diagnosticMode.argsArgs to override all containers in the deployment["infinity"]

Adminer Image parameters

NameDescriptionValue
image.registryAdminer image registrydocker.io
image.repositoryAdminer image repositoryadminer
image.tagAdminer image tag (immutable tags are recommended)5.4.2-standalone
image.pullPolicyAdminer image pull policyIfNotPresent
image.pullSecretsSpecify docker-registry secret names as an array[]
image.debugSpecify if debug logs should be enabledfalse

Adminer Configuration parameters

NameDescriptionValue
config.pluginsList 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.designBundled 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.defaultServerDefault value for the "Server" field on the login screen (ADMINER_DEFAULT_SERVER)""
config.defaultDriverDefault value for the "System" field (ADMINER_DEFAULT_DRIVER). Recognised by login-servers / login-password-less plugins and derivative images.""
config.defaultUsernameDefault value for the "Username" field (ADMINER_DEFAULT_USERNAME). Requires a compatible plugin or derivative image.""
config.defaultPasswordDefault value for the "Password" field (ADMINER_DEFAULT_PASSWORD). Requires a compatible plugin or derivative image; consider sourcing from a Secret via extraEnvVarsSecret.""
config.defaultDatabaseDefault value for the "Database" field (ADMINER_DEFAULT_DATABASE). Requires a compatible plugin or derivative image.""
config.autoLoginAuto-submit the login form when used with login-servers / login-password-less plugins (ADMINER_AUTO_LOGIN)false
config.permanentLoginPersist the Adminer login session across browser restarts (ADMINER_PERMANENT_LOGIN)false
config.baseUrlBase URL Adminer is served from (ADMINER_BASE_URL). Used when running behind a path-based reverse proxy.""
configurationInline Adminer configuration file content (rendered into a ConfigMap)""
existingConfigmapName of existing ConfigMap with Adminer configuration. When set, the chart-rendered env-vars ConfigMap is skipped and the Deployment's envFrom references this CM.""
extraStartupArgsExtra default startup args""
extraFlagsAdminer additional command line flags""
initdbScriptsDictionary of initdb scripts to run at first boot{}
initdbScriptsConfigMapConfigMap with the initdb scripts (overrides initdbScripts)""
extraEnvVarsExtra environment variables to be set on Adminer containers[]
extraEnvVarsCMName of existing ConfigMap containing extra env vars""
extraEnvVarsSecretName of existing Secret containing extra env vars""

Adminer Authentication parameters

NameDescriptionValue
auth.existingSecretAn already existing Secret containing auth info""
auth.existingSecretPerPasswordOverride existingSecret and other secret values per-key{}

Deployment / Workload parameters

NameDescriptionValue
replicaCountNumber of Adminer pods. Ignored when horizontalPodAutoscaler.enabled is true.1
horizontalPodAutoscaler.enabledRender an HPA and skip setting replicas on the Deploymentfalse
horizontalPodAutoscaler.minReplicasLower bound for HPA-managed replica count1
horizontalPodAutoscaler.maxReplicasUpper bound for HPA-managed replica count5
horizontalPodAutoscaler.targetCPUTarget average CPU utilization (percent). Set to "" to disable CPU-based scaling.80
horizontalPodAutoscaler.targetMemoryTarget average memory utilization (percent). Set to "" to disable memory-based scaling.80
horizontalPodAutoscaler.metricsFull HPA metrics list passthrough. When non-empty, takes precedence over targetCPU/targetMemory.[]
revisionHistoryLimitNumber of old ReplicaSets retained for rollback1
updateStrategy.typeUpdate strategy for the Adminer DeploymentRollingUpdate
schedulerNameAlternative scheduler""
terminationGracePeriodSecondsTime in seconds the Adminer pod has to terminate gracefully""
priorityClassNamePriority class name""
hostAliasesAdd deployment host aliases[]
deploymentAnnotationsAnnotations to add to the deployment{}

Pod parameters

NameDescriptionValue
automountServiceAccountTokenMount Service Account token in podfalse
podLabelsExtra labels for Adminer pods{}
podAnnotationsAdminer pod annotations{}
podAffinityPresetPod affinity preset. Ignored if affinity is set. Allowed: soft, hard""
podAntiAffinityPresetPod anti-affinity preset. Ignored if affinity is set. Allowed: soft, hardsoft
nodeAffinityPreset.typeNode affinity preset type. Allowed: soft, hard""
nodeAffinityPreset.keyNode label key to match. Ignored if affinity is set.""
nodeAffinityPreset.valuesNode label values to match. Ignored if affinity is set.[]
affinityAffinity for Adminer pods (overrides the presets above){}
nodeSelectorNode labels for Adminer pods assignment{}
tolerationsTolerations for Adminer pods assignment[]
topologySpreadConstraintsTopology Spread Constraints for Adminer pods assignment{}

Container parameters

NameDescriptionValue
commandOverride the default container command. Ignored when diagnosticMode.enabled.[]
argsOverride the default container args. Ignored when diagnosticMode.enabled.[]
lifecycleHooksLifecycle hooks for the Adminer container(s){}
containerPorts.httpAdminer HTTP container port8080
containerPorts.httpsAdminer HTTPS container port8443
extraPortsExtra ports for container deployment[]
podSecurityContext.enabledEnable security context for Adminer podsfalse
podSecurityContext.fsGroupGroup ID for the mounted volumes' filesystem101
podSecurityContext.runAsUserUser ID for the Adminer pod101
containerSecurityContext.enabledEnable Adminer container securityContextfalse
containerSecurityContext.capabilitiesLinux capabilities to add/drop{}
containerSecurityContext.runAsUserUser ID for the Adminer container101
containerSecurityContext.runAsNonRootSet Adminer container's runAsNonRoottrue
containerSecurityContext.readOnlyRootFilesystemMount the container's root filesystem as read-onlyfalse
containerSecurityContext.allowPrivilegeEscalationBlock child processes from gaining more privileges than the parentfalse
containerSecurityContext.seccompProfileSeccomp profile applied to the container{"type":"RuntimeDefault"}
resourcesPresetContainer resources from a common preset (none, nano, micro, small, medium, large, xlarge, 2xlarge, gs-3xsmall, …). Ignored if resources is set.gs-3xsmall
resourcesContainer requests and limits (essential for production workloads){}
startupProbe.enabledEnable startupProbefalse
startupProbe.initialDelaySecondsInitial delay seconds for startupProbe120
startupProbe.periodSecondsPeriod seconds for startupProbe15
startupProbe.timeoutSecondsTimeout seconds for startupProbe5
startupProbe.failureThresholdFailure threshold for startupProbe10
startupProbe.successThresholdSuccess threshold for startupProbe1
livenessProbe.enabledEnable livenessProbetrue
livenessProbe.initialDelaySecondsInitial delay seconds for livenessProbe120
livenessProbe.periodSecondsPeriod seconds for livenessProbe60
livenessProbe.timeoutSecondsTimeout seconds for livenessProbe2
livenessProbe.failureThresholdFailure threshold for livenessProbe3
livenessProbe.successThresholdSuccess threshold for livenessProbe1
readinessProbe.enabledEnable readinessProbetrue
readinessProbe.initialDelaySecondsInitial delay seconds for readinessProbe10
readinessProbe.periodSecondsPeriod seconds for readinessProbe10
readinessProbe.timeoutSecondsTimeout seconds for readinessProbe1
readinessProbe.failureThresholdFailure threshold for readinessProbe3
readinessProbe.successThresholdSuccess threshold for readinessProbe1
customStartupProbeOverride default startup probe{}
customLivenessProbeOverride default liveness probe{}
customReadinessProbeOverride default readiness probe{}
startupWaitOptionsOverride default builtin startup wait check options{}
extraVolumesAdditional volumes attached to the Adminer pod[]
extraVolumeMountsAdditional volume mounts attached to the Adminer container[]
initContainersAdditional 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.[]
sidecarsAdditional 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.

NameDescriptionValue
persistence.enabledRender 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.

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