Skip to content

Publish a Service

This example publishes a minimal HTTP service from a runtime. You can run the commands yourself, or install an agentic coding tool and ask it to do the same single tool-call workflow.

Install one of:

After installing, open a project terminal and ask the agent to create a runtime, start a simple service on port 8080, and publish it through Runta ingress.

Create a runtime named python-server and publish runtime port 8080 over HTTPS. The public subdomain is based on the runtime UUID assigned by the control plane, not the display name.

Terminal window
runta run --name python-server --cpus 2 --memory 2048 -p '8080/https'

Find the runtime ID:

Terminal window
runta ps -a

Open a shell in the runtime:

Terminal window
runta exec -it python-server bash

Inside the runtime, start a simple HTTP server on port 8080:

Terminal window
python3 -m http.server 8080

From your local machine, verify the published service:

Terminal window
curl https://<runtime-id>.runta.sh

Replace <runtime-id> with the UUID shown in the ID column from runta ps -a. Port-qualified URLs such as https://<runtime-id>.runta.sh:8080 are not supported yet.