Skip to main content

Container Image

We have already built the container image and you can use that in this example. The container image is located at 8scale/hello-world [dockerhub]. We have defined a basic http server with 2 paths.
GET /health returns 200 status
GET /hello returns 200 status with body world

Create Hello World App

Let’s get started, follow these steps to create the app.
1

Compute

5090

32 GiB GPU 4 CPU • 32 GiB RAM
Pick the above option or the cheapest one. While this app doesn’t require a GPU, currently we offer no CPU options.
2

Container

App Name
string
required
Set to hello world
Container Image
string
required
Set to 8scale/hello-world:latest
Registry Auth
string
Leave it empty
Entrypoint
string
Leave it empty
Container Disk
number
default:"1"
required
Leave it as 1 GiB
Cache Volume
number
default:"1"
Leave it as 0
3

Scaling

Min Replica(s)
number
default:"0"
required
Leave it as 0
Max Replica(s)
number
default:"1"
required
Leave it as 1
Requests Per Replica
number
default:"1"
required
Set to 100. This app is very simple, it can handle many requests in parallel.
Scale Down Delay
number
required
Set to 5 seconds
4

Environment

Leave it emptyClick Deploy App and then go to apps page and click hello world app to get to overview page.

Test Hello World App

Click playground tab. Type in hello as GET path and hit send. You will see the result with a 200 status.
The result should look like this.
app result for hello path You have successfully deployed hello-world app and tested scaling up a replica which handles GET /hello request.
I