Create a temporary Kubernetes cluster instantly in your browser. Perfect for testing, demonstrations, and quick experiments with Kubernetes applications.

Get Started with Scratch

Follow these simple steps to add a Scratch environment to your website

1

Create an Environment

Create an environment from the Scratch Dashboard

2

Generate API Key

Create an API key from the Scratch Dashboard

3

Get Session Token

Use API key and Environment ID to retrieve session token

Request
POST https://status.kubebento.com/api/v1/get_session_token
Authorization: ApiKey <scratch_api_key>

{
    "environment_id": "<scratch_environment_id>",
    "session_ttl": 1800
}
Response
200 OK

{
    "session_token": "..."
}
4

Add Terminal to Website

Embed the terminal using the session token

HTML
<iframe
    src="https://scratch.kubebento.com/terminal?session=<scratch_session_token>"
    sandbox="allow-scripts allow-same-origin"
    style="width: 100%; height: 400px;"
></iframe>