Containers
HTTP, worker and cron workloads — scaling, storage, env vars, health checks and runtime configuration.
15 articles
Basic Authentication
Protect HTTP containers with Basic Authentication on Bahriya: up to 10 encrypted credentials enforced at the ingress before requests reach your app.
3 minChoosing container storage
Container storage compared: pick between fast ephemeral scratch space and durable replicated persistent volumes on Bahriya, and see how each is billed.
3 minContainers
Deploy containers on Bahriya from any OCI-compliant image: configure CPU, memory, regions, ports, and health checks, with rolling zero-downtime updates.
2 minCron Jobs
Cron jobs on Bahriya run your container on a schedule with timezone-aware expressions, concurrency policies, run history, and per-minute billing.
4 minEnvironment Variables
Environment variables and secrets configure your container at runtime on Bahriya: plain key-value pairs plus encrypted secrets wired in at deploy time.
2 minEphemeral Storage
Ephemeral storage gives every Bahriya container fast local scratch space: 3 GB free per replica, expandable to 10 GB, wiped whenever the pod restarts.
2 minHealth Checks and Bootstrap Time
Health checks keep your containers available: how Bahriya probes your endpoint, restarts unhealthy instances, and how to set the right bootstrap time.
3 minHTTP Containers
HTTP containers deploy long-running web services on Bahriya with public hostnames, automatic TLS, autoscaling, rate limiting, and custom domains.
4 minInit Jobs
Init jobs run setup tasks such as database migrations before your HTTP container starts on Bahriya, sharing its secrets, registries, and volumes.
3 minPath Rules
Path rules apply basic auth, rate limiting, and IP allow or deny lists to specific URL paths on a Bahriya HTTP container, with longest-match routing.
4 minPersistent Storage
Persistent storage keeps container state across restarts on Bahriya: replicated block SSD volumes held in three copies, billed per GB per replica.
2 minPrometheus Metrics
Prometheus metrics from your containers, scraped and charted by Bahriya across every replica and region, with no monitoring stack to run yourself.
3 minRate Limiting and IP Rules
Rate limiting and IP allow or deny lists control who can reach your Bahriya HTTP container and how much traffic each client IP is able to send.
3 minResources and Autoscaling
Autoscaling and resource controls on Bahriya: set guaranteed CPU and memory, then scale replicas per region on CPU or memory utilisation targets.
2 minWorker Containers
Worker containers run background processes on Bahriya, such as queue consumers and data pipelines, with autoscaling and secrets but no public ingress.
3 min