Open Source
All templates and components

App template

WordPress

WordPress, with MariaDB and an owner account ready.

Memory when idle
about 160 MiB
CI measures it once the app is ready and before any traffic. Leave room for more.
Tested on
x86 servers

Introduction

WordPress is a website and blog engine. This template runs WordPress with its own MariaDB database, behind your domain. Your files and uploads are kept on a volume, and the database is on its own 10Gi volume.

The site is already installed. The owner account admin is created for you, with the administrator email you entered in the install form. Uploads up to 256 MB are allowed.

Values you provide

  • Administrator emailRequired

    WordPress administrator email.

Made for you

These values are generated at deploy and kept in a Kubernetes Secret, shown as Secret/key.

  • wordpress-secrets/database-password
  • wordpress-secrets/database-root-password
  • wordpress-secrets/admin-password
  • wordpress-secrets/auth-key
  • wordpress-secrets/secure-auth-key
  • wordpress-secrets/logged-in-key
  • wordpress-secrets/nonce-key
  • wordpress-secrets/auth-salt
  • wordpress-secrets/secure-auth-salt
  • wordpress-secrets/logged-in-salt
  • wordpress-secrets/nonce-salt

Getting started

  1. In Zeabur OSS, open the wordpress service. When Overview shows its replica as ready, the service is up. Its domain is on the Networking tab under Public domains; it is the domain you entered in the install form.

  2. Sign in at https://<your domain>/wp-admin as admin. Open Variables, click wordpress-secrets under From config files and secrets, and click the eye icon next to admin-password. Without Zeabur OSS, read Secret wordpress-secrets, key admin-password, with kubectl:

    kubectl -n <namespace> get secret wordpress-secrets -o jsonpath='{.data.admin-password}' | base64 -d
    
  3. The database is MariaDB. In your project it is the mariadb database. WordPress reaches it at Service mariadb, port 3306, with database zeabur and user wordpress. Connections use TLS. The passwords are in the same Secret, keys database-password and database-root-password. Open them the same way, or with kubectl:

    kubectl -n <namespace> get secret wordpress-secrets -o jsonpath='{.data.database-password}' | base64 -d
    kubectl -n <namespace> get secret wordpress-secrets -o jsonpath='{.data.database-root-password}' | base64 -d
    
  4. The same Secret also holds the keys and salts that WordPress uses to sign its login cookies: auth-key, secure-auth-key, logged-in-key, nonce-key, auth-salt, secure-auth-salt, logged-in-salt and nonce-salt. You do not need them to use the site. Read one with the same command, for example {.data.auth-key}.

Configuration

Change the admin password

After you sign in, go to Users, All Users, and click your user name. Under New Password, click Generate Password or type your own, then click Update User. The new password works at once. The value in wordpress-secrets is used only for the first install, so it does not change. See Reset your password.

Choose a theme and add plugins

Go to Appearance, Themes to change the look of your site, and to Plugins to add features. See First steps with WordPress.

Set the address format of your pages

Go to Settings, Permalinks, pick a structure and click Save Changes. See Settings Permalinks screen.

Back up the data

In Zeabur OSS, open the mariadb database and go to Backups → Set up backups to back up on a schedule to an S3 bucket. To get a copy now, click More at the top right of the database page, then Export. The browser downloads gzip-compressed SQL made by mariadb-dump --single-transaction. See Set up S3 backups and Download a database dump.

The uploads, themes and plugins are not in the database. They are in the wordpress-data volume, mounted at /var/www/html in the wordpress service. Back up wp-content together with the database dump. In Zeabur OSS, the Files tab can download a folder, but a big folder can time out. For a big wp-content, stream it out with kubectl:

kubectl -n <namespace> exec deploy/wordpress -c wordpress -- tar czf - -C /var/www/html wp-content > wp-content.tar.gz

Troubleshooting

The page shows 502 or does not load

In Zeabur OSS, open the wordpress service. Check that Overview shows its replica as ready, then read the Logs tab. If the replica keeps restarting, open Deployments, then Events. If the events show OOMKilled, raise Maximum memory in Settings → Compute. See Adjust replicas, resources, and health checks and View logs, events, and usage, and open a terminal.

If the domain or its certificate stays pending, see Add public domains and HTTPS.

Resources

Each service is guaranteed the first amount and can use up to the second.

  • wordpress

    Ports

    8080

    CPU

    0.125 cores to 1.5 cores

    Memory

    320 MiB to 1280 MiB

  • mariadb

    Ports

    3306

    CPU

    0.1 cores to 1 core

    Memory

    256 MiB to 1 GiB

Technical details

This release

Version
php8.3-fpm-alpine
Licence
GPL-2.0-or-later AND GPL-2.0-only AND BSD-2-Clause AND MIT

Tested in CI

CI installs these exact files on a new cluster, waits until they are ready, then records the idle memory.

DistributionPlatformKubernetesPassedIdle memory
kindlinux/amd64v1.37.0160 MiB

Security

The WordPress and MariaDB pods run without root rights under restricted settings. The database requires TLS, and the SQL credentials are generated. The operator's helper images are part of what you trust when you use this catalog.

Known risks

  1. Risk

    WordPress plugins and themes run code that can reach the database and the uploaded files.

    How it is handled

    Limit who is an administrator, check plugins before you install them and keep them updated. There is no public FastCGI port. PHP cannot run in the uploads folder, and requests for wp-config, hidden files and raw backup files are denied.

  2. Risk

    On a WordPress site that is not set up yet, the first visitor can claim the site.

    How it is handled

    An init container (official WP-CLI, pinned by digest) creates the admin account with a generated password before the web pods become ready. Nothing is downloaded while it runs.

  3. Risk

    The MariaDB Operator works across namespaces, so you have to trust it with the whole cluster.

    How it is handled

    Install the exact catalog provider and pin its image settings before you use it. The engine init container uses the template's image digest. MaxScale and Galera are not installed.

  4. Risk

    Database backups do not include the uploads, plugins and themes on the wordpress-data volume.

    How it is handled

    Keep the SQL Secrets and the TLS certificates, and run restore drills. Pause WordPress, then archive the wordpress-data volume and the Secrets at the same recovery point as the database.

What the cluster needs

Zeabur OSS suggests the components a cluster is missing. Without it, install them first.