A minimal Task that runs an AI agent with an API key. No git workspace is involved — the agent works in an empty directory inside an ephemeral Pod.
Run a one-off prompt (code generation, text analysis, etc.) without needing access to a repository.
| File | Kind | Purpose |
|---|---|---|
secret.yaml |
Secret | Anthropic API key for the agent |
task.yaml |
Task | The prompt to execute |
-
Edit
secret.yaml— replace the placeholder with your real Anthropic API key. -
Apply the resources:
kubectl apply -f examples/01-simple-task/- Watch the Task:
kubectl get tasks -w- Stream the agent logs:
kelos logs simple-task -fTip: You can also use
kubectl logs -l job-name=simple-task -ffor direct Kubernetes access.
- Cleanup:
kubectl delete -f examples/01-simple-task/