phpmyadmin

by alekc

Helm chartv0.3.1App 5.2.3-apacheGPL-2.0Verified publisher

Web-based administration tool for MySQL and MariaDB, covering databases, tables, users, and permissions

About this chart

phpmyadmin

Web-based administration tool for MySQL and MariaDB, covering databases, tables, users, and permissions

phpMyAdmin is a web-based administration tool for MySQL and MariaDB, covering database and table management, running SQL, and user/permission administration, without needing a local mysql client.

Quick start

helm repo add alekc https://charts.alekc.dev
helm repo update
helm install my-phpmyadmin alekc/phpmyadmin \
  --set config.PMA_HOSTS=mysql.example.com \
  --set ingress.enabled=true

Or directly from the OCI registry, no helm repo add needed:

helm install my-phpmyadmin oci://charts.alekc.dev/phpmyadmin --version 0.3.0

Verifying the signature

curl -sO https://charts.alekc.dev/pubring.gpg
helm pull oci://charts.alekc.dev/phpmyadmin --version 0.3.0 --verify --keyring pubring.gpg

A minimal working values.yaml:

config:
  PMA_HOSTS: mysql.example.com
ingress:
  enabled: true
  hosts:
    - host: phpmyadmin.example.com
      paths:
        - path: /
          pathType: ImplementationSpecific

Maintainers

NameEmailUrl
alekc[email protected]

Source Code

Values

KeyTypeDefaultDescription
additionalManifestsobject{}Additional raw Kubernetes manifests to render alongside the chart's own resources. Supports any valid Kubernetes object; values are templated with tpl, so a manifest can reference .Release.Namespace and friends.
affinityobject{}Affinity rules for pod scheduling.
annotations.deploymentobject{}Deployment's annotations
autoscaling.enabledboolfalseRenders a HorizontalPodAutoscaler instead of a fixed replicaCount.
autoscaling.maxReplicasint100Maximum replica count.
autoscaling.minReplicasint1Minimum replica count.
autoscaling.targetCPUUtilizationPercentageint80Target average CPU utilization percentage.
commonAnnotationsobject{}Annotations merged onto every resource this chart renders, in addition to each resource's own dedicated annotations field.
commonLabelsobject{}Labels merged onto every resource this chart renders. Never reaches selector/matchLabels, safe to change without forcing a Deployment recreate.
configobject{"PMA_ABSOLUTE_URI":"","PMA_ARBITRARY":"","PMA_HOSTS":""}Set of env values used to configure the phpMyAdmin instance. For the complete list see https://docs.phpmyadmin.net/en/latest/setup.html#installing-using-docker
config.PMA_ABSOLUTE_URIstring""Fully-qualified path (https://pma.example.net/) where a reverse proxy makes phpMyAdmin available.
config.PMA_ARBITRARYstring""If set to 1, permits connecting to any arbitrary host from the login screen.
config.PMA_HOSTSstring""Comma-separated list of address/host names of the MySQL/MariaDB servers.
extraContainerslist[]Extra sidecar containers appended to the pod spec, templated with tpl so they can reference .Release.Namespace and friends.
fullnameOverridestring""Overrides the full resource name, instead of the default <release>-<chart> pattern.
image.pullPolicystring"IfNotPresent"Image pull policy.
image.repositorystring"phpmyadmin"Image repository.
image.tagstring""Overrides the image tag whose default is the chart appVersion.
imagePullSecretslist[]Image pull secrets, for a private registry mirror.
ingress.annotationsobject{}Annotations to add to the Ingress
ingress.classNamestring""IngressClass name, e.g. "nginx" or "traefik"
ingress.enabledboolfalseRenders an Ingress for the Service.
ingress.hostslist[{"host":"chart-example.local","paths":[{"path":"/","pathType":"ImplementationSpecific"}]}]Ingress host and path rules
ingress.tlslist[]TLS configuration for the Ingress
initContainerslist[]Extra init containers appended to the pod spec, templated with tpl.
livenessProbeobject{"enabled":true,"httpGet":{"path":"/","port":"http"}}Pod liveness probe. Set enabled: false to disable rather than overriding the block to {}/null, Helm's deep merge would leave a non-empty default in place either way.
nameOverridestring""Overrides the chart name used to build resource names.
networkPolicy.annotationsobject{}Annotations to add to the NetworkPolicy
networkPolicy.enabledboolfalseRender a NetworkPolicy restricting ingress to the Service port and egress to DNS plus a broad allowance. config.PMA_HOSTS names arbitrary MySQL/MariaDB hosts that may live outside the cluster, so egress is broad by default, see Gotchas.
networkPolicy.extraEgresslist[]Additional raw egress rules, appended as-is under spec.egress.
networkPolicy.extraIngresslist[]Additional raw ingress rules, appended as-is under spec.ingress.
nodeSelectorobject{}Node selector for pod scheduling.
podAnnotationsobject{}Annotations added to the pod template.
podSecurityContextobject{}Pod-level securityContext.
readinessProbeobject{"enabled":true,"httpGet":{"path":"/","port":"http"}}Pod readiness probe. Same enabled: false toggle as livenessProbe.
replicaCountint1Pod replica count. Ignored when autoscaling.enabled is true.
resourcesobject{}
securityContextobject{}Container-level securityContext.
service.annotationsobject{}Annotations to add to the Service
service.portint80Service port.
service.typestring"ClusterIP"Kubernetes Service type.
serviceAccount.annotationsobject{}Annotations to add to the service account
serviceAccount.createbooltrueSpecifies whether a service account should be created
serviceAccount.namestring""The name of the service account to use. If not set and create is true, a name is generated using the fullname template
tolerationslist[]Tolerations for pod scheduling.

Gotchas

  • config.PMA_HOSTS is required for anything beyond the login screen. Without it (or config.PMA_ARBITRARY: "1"), phpMyAdmin has no MySQL/MariaDB server to connect to. See the image's setup docs for the full list of supported PMA_* env vars.
  • networkPolicy.enabled allows broad egress to 0.0.0.0/0 by default. config.PMA_HOSTS can name a server outside the cluster, which isn't a small fixed CIDR, so there's no useful default to narrow this to out of the box. Narrow it with networkPolicy.extraEgress if your database always lives at a known address.
  • No persistence. This chart is a stateless client; nothing it holds (sessions, saved bookmarks) survives a pod restart. Configuration for a specific server is set via config.* or config.PMA_ABSOLUTE_URI, not stored on disk.

Upgrade notes

No breaking changes yet. This section will list migration steps for any future release with a kind: removed or kind: changed entry in artifacthub.io/changes that requires one.

Deploy phpmyadmin with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has phpmyadmin 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 chartphpmyadmin 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