Getting started with Apache OpenServerless—because apparently, your life wasn’t already complicated enough. Here’s how to take this open-source serverless thing for a spin. I’m not thrilled about it, but here it goes:
Table of Contents
- 1. 1. What the heck is Apache OpenServerless?
- 2. 2. Install the ops CLI (Because humans hate GUIs)
- 3. 3. Choose your playground
- 3.1 a) Local machine (using Docker):
- 3.2 b) Bare-metal or VM Linux server:
- 3.3 c) Kubernetes cluster (cloud or on-prem):
- 4. 4. Configure those pesky services
- 5. 5. Have a user. Because security?
- 6. 6. Log in with swagger
- 7. 7. Kick off your first app
- 8. 8. Hook it up to a database (because why not)
- 9. 9. Next-level nerd moves
- 10. TL;DR (Ten Lines, Really?)
1. What the heck is Apache OpenServerless?
It’s a serverless platform built upon Apache OpenWhisk, bundled with databases, object storage, cron scheduling, and more. Intended to run anywhere Kubernetes does. And yes, there’s an annoyingly convenient CLI called ops
that handles everything. Apache OpenServerless™incubator.apache.org
2. Install the ops
CLI (Because humans hate GUIs)
- Grab the
ops
tool for your platform—Windows, macOS, Linux—you know the drill. - Test it with:
ops -info
just so you feel something. Apache OpenServerless™+1
3. Choose your playground
a) Local machine (using Docker):
- Make sure Docker’s running.
- Run:
ops setup devcluster
They recommend at least 16 GB RAM. But hey, if you’re a risk-taker, you can bypass that with:export PREFL_NO_MEM_CHECK=1 export PLEFL_NO_CPU_CHECK=1
and pray it doesn’t blow up. Apache OpenServerless™Apache OpenServerless™
b) Bare-metal or VM Linux server:
- Provision it, enable SSH with sudo, open ports 80, 443, 6443, and then:
ops setup server <server> <user>
Replace placeholders with actual values. Apache OpenServerless™+1Apache OpenServerless™
c) Kubernetes cluster (cloud or on-prem):
If you’re feeling corporate:
ops setup cluster
Prereqs include admin access, a storage class, and nginx-ingress
. Apache OpenServerless™+1
Or use:
ops config eks && ops cloud eks create
(or Azure/AWS/GCP equivalents). Apache OpenServerless™
4. Configure those pesky services
After the install, decide what you want:
ops config enable --postgres --static --minio --cron
Or go whole hog with:
ops config enable --all
Then apply:
ops update apply
Because why not make it more complex than it has to be? Apache OpenServerless™+2Apache OpenServerless™+2Apache OpenServerless™
5. Have a user. Because security?
Run this as the admin:
ops admin adduser opstutorial <youremail> SimplePassword --all
Congrats, now you have a user. Of sorts. Apache OpenServerless™Apache OpenServerless™
6. Log in with swagger
ops ide login opstutorial http://localhost:80
It sets authentication and API host. Now you’re “officially” in. Apache OpenServerless™
7. Kick off your first app
You’ll start with a sample contact form app:
- Create a folder structure:
contact_us_app/ ├─ web/ │ └─ index.html └─ packages/
- Stick your HTML contact form in
web/index.html
. Brutal honesty: you’ll see a form. Apache OpenServerless™ - Deploy it:
ops ide deploy
The CLI pushes your stuff and spits out the URL where it lives. Groundbreaking. Apache OpenServerless™
8. Hook it up to a database (because why not)
- Create
create-table.js
inpackages/contact/
with code to set up a PostgreSQL table. - Invoke it:
ops action invoke contact/create-table
- Check logs:
ops activation logs --last
- Inspect the table:
ops devel psql describe "demo.contacts" --format=table
You’re storing messages. It feels like progress. Apache OpenServerless™
9. Next-level nerd moves
- REST API access to everything (
actions
,activations
,packages
, etc.). Technical people tingle for this. Apache OpenServerless™ - Dive deeper with reference docs: CLI tasks, runtimes, REST APIs, naming limits, advanced stuff—only if masochistic. Apache OpenServerless™+1
TL;DR (Ten Lines, Really?)
Step | What You Do |
---|---|
1 | Install ops CLI and confirm it works |
2 | Choose install mode: local, server, or Kubernetes |
3 | Install with ops setup ... |
4 | Enable services (--all or pick and choose) |
5 | Add a user and log in |
6 | Build and deploy sample app (contact form) |
7 | Store data in Postgres with an action |
8 | Explore REST APIs and reference docs as needed |
In short: install ops
, choose where, enable what you want, slap together a contact form, store messages in a database, and if you’re into docs or APIs, they’re waiting. Fascinating world we live in.
- NVIDIA to Invest $5 Billion in Rival Intel in Landmark AI Chip Collaboration
- Spotify Premium Lossless Audio: How to Enable Hi-Fi Streaming
- Apple Event September 2025: Everything Announced – iPhone 17, AirPods Pro 3, Apple Watch & More
- iPhone 17 Series Unveiled at Apple Event: 17, 17 Air, and 17 Pro Redefine Innovation
- A Guide to Factory Reset Google Pixel/Android with Family Link Account | Safely Remove Child’s Account
- How to Recover Permanently Deleted Files on Mac
- How to Remove Microsoft Store Ads Showing Up on Windows