Abstract
Kubernetes Operator Agent is a LLM agent that is deployed as an operator in Kubernetes.
Kubernetes Operator Agent#
Repository Contents#
Indices and tables#
- argo-cd#
A declarative, GitOps continuous delivery tool for Kubernetes. More information is available here.
- ArtifactHub#
A centralized location for Helm charts and artifacts. More information is available here.
- GitHub#
Most likely the site this repository is hosted on. More information is available here.
- Helm#
A tool commonly used to deploy applications to Kubernetes. More information is available here.
- LangChain#
LangChain’s flexible abstractions and AI-first toolkit make it the #1 choice for developers when building with GenAI. More information is available here.
- Kubernetes#
An ancient Greek word that means ‘sailor’ or ‘navigator’, it is the most common container orchestration system currently in use. More information is available here.
Usage for Bare Metal Deployment#
The process for this follows.
Build the agent image and push it to a public or local image repository.
docker build -t dockerhubuser/agent:0.0.1 .
Configure the
redis-stack
application’s required storage class settings.# This is necessary only if you need to override the # default `hostpath` storageClass. redis-stack-server: redis_stack_server: storage_class: csi-lvm-linear
Configure the image repository and tag settings.
image: repository: dockerhubuser/agent tag: 0.0.1
Obtain an OpenAPI API key and configure its value for the deployment.
envVars: OPENAI_API_KEY: base64-encoded-api-key
.gitignore
Double check that the git ignore file contains
secrets
orsecrets/
to make sure that you don’t unintentionally push your API key to GitHub.You can find how to get an API key here.
Create a namespace for the agent.
kubectl create ns agent
Deploy the agent with Helm using the values shown above.
helm upgrade --install -n agent agent deployment/helm/k8s-agent \ -f secrets/values.yaml -f values.yaml
Section author: Xander Harris xandertheharris@gmail.com