phpmyadmin
by alekc
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
| Name | Url | |
|---|---|---|
| alekc | [email protected] |
Source Code
Values
| Key | Type | Default | Description |
|---|---|---|---|
| additionalManifests | object | {} | 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. |
| affinity | object | {} | Affinity rules for pod scheduling. |
| annotations.deployment | object | {} | Deployment's annotations |
| autoscaling.enabled | bool | false | Renders a HorizontalPodAutoscaler instead of a fixed replicaCount. |
| autoscaling.maxReplicas | int | 100 | Maximum replica count. |
| autoscaling.minReplicas | int | 1 | Minimum replica count. |
| autoscaling.targetCPUUtilizationPercentage | int | 80 | Target average CPU utilization percentage. |
| commonAnnotations | object | {} | Annotations merged onto every resource this chart renders, in addition to each resource's own dedicated annotations field. |
| commonLabels | object | {} | Labels merged onto every resource this chart renders. Never reaches selector/matchLabels, safe to change without forcing a Deployment recreate. |
| config | object | {"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_URI | string | "" | Fully-qualified path (https://pma.example.net/) where a reverse proxy makes phpMyAdmin available. |
| config.PMA_ARBITRARY | string | "" | If set to 1, permits connecting to any arbitrary host from the login screen. |
| config.PMA_HOSTS | string | "" | Comma-separated list of address/host names of the MySQL/MariaDB servers. |
| extraContainers | list | [] | Extra sidecar containers appended to the pod spec, templated with tpl so they can reference .Release.Namespace and friends. |
| fullnameOverride | string | "" | Overrides the full resource name, instead of the default <release>-<chart> pattern. |
| image.pullPolicy | string | "IfNotPresent" | Image pull policy. |
| image.repository | string | "phpmyadmin" | Image repository. |
| image.tag | string | "" | Overrides the image tag whose default is the chart appVersion. |
| imagePullSecrets | list | [] | Image pull secrets, for a private registry mirror. |
| ingress.annotations | object | {} | Annotations to add to the Ingress |
| ingress.className | string | "" | IngressClass name, e.g. "nginx" or "traefik" |
| ingress.enabled | bool | false | Renders an Ingress for the Service. |
| ingress.hosts | list | [{"host":"chart-example.local","paths":[{"path":"/","pathType":"ImplementationSpecific"}]}] | Ingress host and path rules |
| ingress.tls | list | [] | TLS configuration for the Ingress |
| initContainers | list | [] | Extra init containers appended to the pod spec, templated with tpl. |
| livenessProbe | object | {"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. |
| nameOverride | string | "" | Overrides the chart name used to build resource names. |
| networkPolicy.annotations | object | {} | Annotations to add to the NetworkPolicy |
| networkPolicy.enabled | bool | false | Render 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.extraEgress | list | [] | Additional raw egress rules, appended as-is under spec.egress. |
| networkPolicy.extraIngress | list | [] | Additional raw ingress rules, appended as-is under spec.ingress. |
| nodeSelector | object | {} | Node selector for pod scheduling. |
| podAnnotations | object | {} | Annotations added to the pod template. |
| podSecurityContext | object | {} | Pod-level securityContext. |
| readinessProbe | object | {"enabled":true,"httpGet":{"path":"/","port":"http"}} | Pod readiness probe. Same enabled: false toggle as livenessProbe. |
| replicaCount | int | 1 | Pod replica count. Ignored when autoscaling.enabled is true. |
| resources | object | {} | |
| securityContext | object | {} | Container-level securityContext. |
| service.annotations | object | {} | Annotations to add to the Service |
| service.port | int | 80 | Service port. |
| service.type | string | "ClusterIP" | Kubernetes Service type. |
| serviceAccount.annotations | object | {} | Annotations to add to the service account |
| serviceAccount.create | bool | true | Specifies whether a service account should be created |
| serviceAccount.name | string | "" | The name of the service account to use. If not set and create is true, a name is generated using the fullname template |
| tolerations | list | [] | Tolerations for pod scheduling. |
Gotchas
config.PMA_HOSTSis required for anything beyond the login screen. Without it (orconfig.PMA_ARBITRARY: "1"), phpMyAdmin has no MySQL/MariaDB server to connect to. See the image's setup docs for the full list of supportedPMA_*env vars.networkPolicy.enabledallows broad egress to0.0.0.0/0by default.config.PMA_HOSTScan 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 withnetworkPolicy.extraEgressif 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.*orconfig.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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartphpmyadmin 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