Skip to main content
This guide walks you through everything you need to deploy your first AI agent with Flokoa — from installing the operator to confirming your agent is running. By the end, you’ll have a working Agent resource in your cluster backed by an OpenAI model.
1

Check the prerequisites

Before you begin, make sure you have the following in place:
  • Kubernetes 1.25 or later — any conformant cluster works (local clusters like kind or minikube are fine for development)
  • kubectl configured to communicate with your target cluster
  • An OpenAI API key — you’ll store this in a Kubernetes Secret
You can verify your cluster version and connectivity with:
2

Install the Flokoa operator

Apply the single-file install manifest. This creates the flokoa-system namespace, installs all six Custom Resource Definitions, and deploys the operator controller.
Wait for the operator pod to become ready:
You should see output similar to:
The operator runs in the flokoa-system namespace and manages resources across all namespaces in your cluster. It requires cluster-scoped permissions to watch and manage CRDs, Deployments, and Services.
3

Create an OpenAI secret and ModelProvider

Store your OpenAI API key as a Kubernetes Secret in the namespace where you’ll deploy your agent:
Now declare a ModelProvider that references that secret:
Save this as modelprovider.yaml and apply it:
4

Create a Model resource

A Model resource selects a specific model name and inference parameters, wiring them to your ModelProvider. Create a model.yaml file:
Apply it:
Verify both resources are ready:
5

Deploy your first agent

Now create your first Agent resource. This minimal example uses the standard runtime mode — you supply the container image and the operator handles the Deployment and Service.
Save this as agent.yaml and apply it:
Replace ghcr.io/example/simple-agent:latest with your own agent image. See the Agent resource reference for the full spec including environment variables, resource limits, and health check configuration.
6

Check your agent's status

Watch the agent come up and confirm it reaches the Running phase:
Expected output:
For detailed information including status conditions, events, and the resolved model:
If the agent is stuck in Pending, check the underlying pod events:
To stream logs from the running agent:
If the Agent phase shows Failed, run kubectl describe agent my-first-agent and look at the Status.Conditions section. Common causes include an inaccessible container image, a missing Secret, or a ModelProvider that hasn’t resolved yet.

What’s next?

You have a running agent — here are the natural next steps depending on what you want to explore.

Agent resource reference

Learn the full Agent spec: replica counts, resource limits, health checks, tool bindings, and more.

Connect an LLM provider

Configure Anthropic, Google Gemini, or AWS Bedrock as an alternative to OpenAI.

SDK overview

Use the Flokoa Python SDK and CLI to build agents, call them programmatically, and integrate with pydantic-ai or Google ADK.