App template
Halo
Halo for websites and blogs, with PostgreSQL.
- Memory when idle
- about 430 MiB
- CI measures it once the app is ready and before any traffic. Leave room for more.
- Tested on
- x86 servers
Introduction
Halo is a website and blog system with themes and plugins. This template runs Halo behind your domain, with a PostgreSQL database.
Values you provide
You don’t fill in anything when you deploy.
Made for you
These values are generated at deploy and kept in a Kubernetes Secret, shown as Secret/key.
- halo-secrets/admin-password
Getting started
-
In Zeabur OSS, open the
haloservice. When Overview shows its replica as ready, the service is up. Its domain is on the Networking tab under Public domains, for examplehalo.example.com. Visitors see the site there, and the console is at/console. -
The first start creates the super administrator
admin. There is no setup wizard. Get its password. Open Variables, clickhalo-secretsunder From config files and secrets, and click the eye icon next toadmin-password. Without Zeabur OSS, read Secrethalo-secrets, keyadmin-password, with kubectl:kubectl -n <namespace> get secret halo-secrets -o jsonpath='{.data.admin-password}' | base64 -d -
Open
https://halo.example.com/consoleand sign in asadminwith that password. Then change the password in the console.
Configuration
Install a theme
In the console, open Themes, then Theme management at the top right. You can install a theme from the built-in app store, upload a theme package, or download one from a URL. After you install it, select it and click Enable. See Themes.
Back up the data
Halo has its own backup. In the console, open Backup and click Create backup. Halo runs the backup in the background. Backup files are in the backups folder of the Halo work directory, which is on the volume halo-data (/var/lib/halo). Store a copy somewhere else too.
Halo keeps its content in the halo-db database. In the project, open halo-db. Under Backups, set up S3 backups. To get a file instead, click More → Export.
A large backup file can fail to upload in the browser. Copy it into the backups folder with kubectl, then restore it from the backup files in the console:
kubectl -n <namespace> cp ./<backup file> halo-0:/var/lib/halo/backups/
See Backup and restore in the Halo docs. See Create, back up, and restore databases and Download a database dump in the Zeabur OSS docs.
Troubleshooting
The page shows 502 or does not load
Open the halo service in Zeabur OSS. Check that Overview shows its replica as ready, then read the Logs tab. If the replica is not ready, open Deployments and switch to Events. If Events show OOMKilled, the service ran out of memory. Raise Maximum memory under Settings → Compute. If the domain or the certificate stays pending, see Troubleshooting on the domains page.
Without Zeabur OSS, read the logs with kubectl -n <namespace> logs statefulset/halo and the events with kubectl -n <namespace> get events --sort-by=.lastTimestamp.
See Adjust replicas, resources, and health checks and View logs, events, and usage, and open a terminal in the Zeabur OSS docs.
Resources
Each service is guaranteed the first amount and can use up to the second.
halo
Ports
8090
CPU
0.25 cores to 2 cores
Memory
512 MiB to 2 GiB
halo-db
Ports
5432
CPU
0.1 cores to 2 cores
Memory
256 MiB to 1 GiB
Technical details
This release
- Version
- 2.27.3
- Licence
- GPL-3.0-only AND PostgreSQL
- Homepage
- github.com
- Source file
- templates/halo/template.yaml @ v0.6.3
Tested in CI
CI installs these exact files on a new cluster, waits until they are ready, then records the idle memory.
| Distribution | Platform | Kubernetes | Passed | Idle memory |
|---|---|---|---|---|
| kind | linux/amd64 | v1.37.0 | 428 MiB |
Security
The Halo app runs as non-root with a restricted profile, a read-only root filesystem and no API token. The catalog CloudNativePG operator manages PostgreSQL, and its pods have one exception: a limited service-account token. Outbound traffic is not limited.
Known risks
Risk
The CloudNativePG instance manager needs the Kubernetes API and a limited service-account token. The template cannot harden the Pods that the operator creates.
How it is handled
Trust the pinned catalog operator. Enforce the restricted Pod Security level on the namespace, and inspect the Pods the operator generates.
Risk
If Halo has not been set up yet, the first visitor can create the administrator account.
How it is handled
At the first start, the template creates the super administrator admin with a generated password from the Secret halo-secrets, so there is no open setup step. Sign in as admin and change the password in the console.
Risk
Database backups do not include Halo's local attachments, plugins or themes.
How it is handled
Back up the Halo PVC off the node as well as the database, and test a restore of both together. The built-in Halo backup also stays on the node.
What the cluster needs
Zeabur OSS suggests the components a cluster is missing. Without it, install them first.