Skip to content

Declarative Config

You can manage multiple runtimes with a JSON config file.

Terminal window
cat > deployment.json <<EOF
{
"apiVersion": "runta/v1",
"kind": "SandboxSet",
"sandboxes": [
{
"name": "ci-runner-1",
"resources": {
"vcpus": 1,
"memory_mib": 512
}
},
{
"name": "ci-runner-2",
"resources": {
"vcpus": 1,
"memory_mib": 512
}
},
{
"name": "ci-runner-3",
"resources": {
"vcpus": 1,
"memory_mib": 512
}
}
]
}
EOF

Preview the changes:

Terminal window
runta apply -f deployment.json --dry-run

Apply the config and list the resulting runtimes:

Terminal window
runta apply -f deployment.json
runta ps -a

Clean up the runtimes declared in the config:

Terminal window
runta delete -f deployment.json