Skip to content

Deploy Kaeso on Oracle Cloud Infrastructure

Run Kaeso 0.7.0 on an OCI Ampere A1 Arm VM within Oracle's Always Free allowance. Current 2 OCPU / 12 GB limits, security lists, iptables without UFW, DNS, backups and updates.

Published
Reading time
7 min
Author
Kaeso Team
A bright gradient of blue and cyan, in gentle level folds, with a warm light in one corner

Oracle Cloud Infrastructure (OCI) includes an Always Free tier of Arm-based OCI Ampere A1 Compute instances (VM.Standard.A1.Flex). Because Kaeso publishes multi-architecture linux/arm64 images, the full Docker Compose stack runs natively on a single A1 VM with 2 OCPUs and 12 GB of memory.

OCI has several quirks that trip up first-time deployments: your home region cannot be changed after sign-up, Always Free capacity is sometimes unavailable, Oracle lowered the Always Free A1 allowance in 2026, and Ubuntu images on OCI ship with host iptables rules where Oracle warns against using UFW. This guide walks through all of them for Kaeso 0.7.0; for shared Docker, backup and troubleshooting details, see the Linux server guide.

What you need

AccountAn Oracle Cloud Free Tier (opens in a new tab) or Pay As You Go account (sign-up requires a credit or debit card without PIN for verification; one Free Tier account per person)
Home regionPick your home region carefully at sign-up: it cannot be changed (opens in a new tab) afterwards, and Always Free instances must be created there
SSH keyAn SSH public key on your machine, such as ~/.ssh/id_ed25519.pub
DomainA domain or subdomain such as kaeso.example.com whose DNS you control
EmailAn SMTP server on port 587 with STARTTLS (you can add it after the first login)

What it costs

Kaeso itself is open source under the MIT licence. Oracle's Always Free resources (as listed on Oracle's Always Free Resources (opens in a new tab) page on 21 November 2026) include the following in your home region:

  • OCI Ampere A1 Compute (VM.Standard.A1.Flex)
    Always Free allowance
    First 1,500 OCPU hours and 9,000 GB hours per month — equal to 2 OCPUs and 12 GB RAM for an Always Free tenancy
    Fit for Kaeso
    On A1, 1 OCPU equals 1 vCPU (opens in a new tab). One 2-OCPU, 12-GB VM meets Kaeso's 2-vCPU minimum with room for ClickHouse
  • Block Volume storage
    Always Free allowance
    200 GB total across boot and block volumes, plus 5 volume backups
    Fit for Kaeso
    Default boot volume is about 50 GB, above Kaeso's 20 GB minimum
  • Outbound data
    Always Free allowance
    10 TB per month
    Fit for Kaeso
    Inbound data carries no charge
  • Email Delivery (optional)
    Always Free allowance
    3,000 emails per month
    Fit for Kaeso
    Can be used as an SMTP relay

Three conditions matter before you count on Always Free:

  • Limits change. Oracle halved the Always Free A1 allowance in 2026 (older tutorials still cite 4 OCPUs and 24 GB). Size your instance at 2 OCPUs and 12 GB or less from day one, even during the 30-day Free Trial: Oracle's Free Tier FAQ (opens in a new tab) states that A1 instances exceeding Always Free limits are disabled when the trial ends and deleted after 30 days unless you upgrade. Paid (Pay As You Go) tenancies may differ; check the Oracle Cloud Price List (opens in a new tab).
  • Idle reclamation. Oracle may reclaim idle Always Free compute instances if, over a 7-day period, 95th-percentile CPU utilization is below 20%, network utilization is below 20%, and (for A1 shapes) memory utilization is below 20% (Always Free Resources (opens in a new tab)). A Kaeso install with regular traffic is usually active, while an unused test install may be reclaimed.
  • No support and capacity limits. Always Free accounts are not eligible for Oracle Support, and A1 availability is subject to regional capacity. Check Oracle's pages before you start.

1. Create the Ampere A1 instance

In the OCI Console, open Compute › Instances › Create instance in your home region (creating an instance (opens in a new tab)):

  1. Placement: pick an availability domain in your home region (Ampere A1 is available in every availability domain except South Korea North / Chuncheon).
  2. Image: choose Canonical Ubuntu 24.04 (aarch64 build — use the standard Ubuntu image, not Minimal Ubuntu, as noted in Platform Images (opens in a new tab) and Ubuntu 24.04 images (opens in a new tab)).
  3. Shape: select Ampere › VM.Standard.A1.Flex, set 2 OCPUs and 12 GB of memory. Check that the Always Free-eligible label appears.
  4. Networking: create or pick a VCN with a public subnet and enable Assign a public IPv4 address.
  5. SSH keys: paste or upload your public SSH key.
  6. Boot volume: keep the default (about 50 GB) or increase within your 200 GB Always Free allowance.

If you see "Out of host capacity", Oracle's docs recommend trying another availability domain in your home region, waiting and trying again later, or upgrading to Pay As You Go (Oracle states it does not charge for resources within Always Free limits after upgrading).

Optional: install with cloud-init

Under Show advanced options › Management, OCI accepts a plain-text Initialization script up to 32,000 bytes (do not base64-encode it, and do not trigger a reboot inside it). If you use one, open the host firewall ports first (step 3 below) before running the Kaeso installer.

2. Open ports in the VCN security list

A VCN's default security list (opens in a new tab) allows only inbound TCP port 22 (SSH) and ICMP. Add stateful ingress rules for HTTP, HTTPS and HTTP/3 (updating a security list (opens in a new tab)):

  1. Open your instance's subnet, click the Security tab, and open its security list (or attach a Network Security Group with the same rules).
  2. Click Add Ingress Rules and add three stateful rules from source CIDR 0.0.0.0/0:
    • IP Protocol TCP, Destination Port Range 80
    • IP Protocol TCP, Destination Port Range 443
    • IP Protocol UDP, Destination Port Range 443
  3. Optionally restrict the existing TCP 22 rule to your own IP range (203.0.113.0/24).

3. Open ports in the instance firewall (do not use UFW)

OCI's platform images also run a host firewall that allows only SSH (Platform Images (opens in a new tab)). Do not use ufw on OCI Ubuntu images: Oracle's Known Issues for Compute (opens in a new tab) warns that editing rules with UFW can prevent the instance from booting, and must not block link-local traffic to 169.254.0.2.

Sign in as ubuntu (root SSH login is disabled by default; on Oracle Linux the default user is opc):

ssh ubuntu@203.0.113.10

Before installing Docker, add ports 80/tcp, 443/tcp and 443/udp to /etc/iptables/rules.v4 ahead of the final REJECT line in the INPUT chain and reload them:

sudo cp /etc/iptables/rules.v4 /etc/iptables/rules.v4.baksudo iptables -I INPUT 6 -m state --state NEW -p tcp --dport 80 -j ACCEPTsudo iptables -I INPUT 6 -m state --state NEW -p tcp --dport 443 -j ACCEPTsudo iptables -I INPUT 6 -m state --state NEW -p udp --dport 443 -j ACCEPTsudo sh -c 'iptables-save > /etc/iptables/rules.v4'

Inspect /etc/iptables/rules.v4 to confirm the three ACCEPT lines sit above the REJECT rule and that nothing blocks 169.254.0.2. Doing this before installing Docker matters: running iptables-restore < /etc/iptables/rules.v4 after Docker starts replaces Docker's own chains until you run sudo systemctl restart docker. (Docker's published ports are routed via nat and FORWARD ahead of INPUT once running — see Docker and firewalls (opens in a new tab) — and opening INPUT keeps the host firewall consistent across reboots.)

If you chose Oracle Linux instead of Ubuntu, open the same ports with firewall-cmd instead (ways to secure a network (opens in a new tab)).

4. Point your domain at the instance

Create an A record for kaeso.example.com pointing at the instance's public IPv4 address, and check that it resolves before running the installer:

dig +short kaeso.example.com

5. Install Kaeso

Download and read the installer, then run it with sudo:

curl -fsSL https://kaeso.app/install.sh -o install.shless install.shsudo sh install.sh --domain kaeso.example.com --dir /opt/kaeso --install-docker

Docker Engine supports Ubuntu 24.04 on arm64 (Docker on Ubuntu (opens in a new tab)), and Kaeso's 0.7.0 images ship multi-arch builds for linux/arm64. The installer sets up Docker, writes /opt/kaeso/compose.yaml, .env and master-keys, starts every service with the updater enabled, waits for Caddy's certificate, and prints a one-time setup link. Add --version 0.7.0 to pin this release.

6. Create the first user, save the master key and add SMTP

Open the setup link within 24 hours to create the first instance admin. To print a new link while no user exists:

cd /opt/kaesosudo docker compose exec gateway kaeso setup-link

Save /opt/kaeso/master-keys into your password manager, separate from your server backups:

sudo cat /opt/kaeso/master-keys

For outgoing email, OCI blocks port 25 by default unless you open a service limits request (Always Free Resources (opens in a new tab)). Oracle documents no block on port 587, which is Kaeso's default. Edit /opt/kaeso/.env as shown in the Linux server guide, apply with sudo docker compose up -d --wait, and verify:

cd /opt/kaesosudo docker compose exec gateway kaeso mail test owner@example.com

Back up

Always Free includes five Block Volume backups across your tenancy. Volume backups are useful for restoring the whole instance, but not a replacement for pg_dump: a snapshot taken while PostgreSQL writes may not restore cleanly. Schedule logical PostgreSQL dumps off the instance as shown in the Linux server guide, and keep /opt/kaeso/master-keys somewhere else.

Update to the next release

Instance admins can update from Instance › Updates in the console, turn on automatic updates in a maintenance window, or run sudo sh install.sh --update in /opt/kaeso. See Update to the next release.

Before updating from 0.6 to 0.7, check .env and compose.override.yaml for the three settings 0.7.0 now refuses (KAESO_KPMR_INTERVAL below 5m, KAESO_MCP_SERVERS_SYNC_INTERVAL below 1m, and KAESO_SMTP_USER without KAESO_SMTP_PASSWORD); see the Kaeso 0.7 article.

Troubleshooting

What you seeWhat to do
"Out of host capacity" when creating the VMTry another availability domain in your home region, wait and retry later, or upgrade to Pay As You Go (usage within Always Free limits is not billed)
Ports 80/443 time out despite VCN rulesCheck both the subnet's VCN security list and /etc/iptables/rules.v4 on the instance; never use ufw on OCI Ubuntu images
Containers lose network access after iptables-restoreiptables-restore overwrites Docker's chains; run sudo systemctl restart docker afterwards
Instance stopped after a quiet weekCheck OCI's 7-day idle reclamation thresholds (CPU, network and memory each under 20%)
ssh root@… is rejectedOCI disables root SSH login by default; sign in as ubuntu (or opc on Oracle Linux) and use sudo

See Troubleshooting in the Linux server guide for shared Docker and gateway issues.

What was tested

The OCI steps were checked against Oracle Cloud Infrastructure's documentation and Docker's Ubuntu arm64 docs on 22 November 2026; Kaeso hasn't been installed on OCI for this guide. For the shared Compose package, the 0.7.0 compose.yaml, .env, kaeso config check and first start against PostgreSQL, ClickHouse and Valkey were tested locally, and the 0.6-to-0.7 update path was tested on a Debian server during the 0.7.0 release. If you deploy it there, tell us how it went.

Next steps

Product names in this guide belong to their owners and are used only to name the software and services involved. Kaeso is not affiliated with or endorsed by them.

By Kaeso Team

On this page

Own the gateway.Own the record.

curl -fsSLhttps://kaeso.app/install.sh | sh