If you are on Linux, you can start the setup right away.
Run the following to provision the required infrastructure:
playgrounds/kind/infra-setup/setup.shTo run this lab with Devbox:
- Set up the cluster and bootstrap GitOps:
cd playgrounds/kind
devbox run setup- Tear down and clean up resources:
cd playgrounds/kind
devbox run shutdown- Create an OpenAI API key secret in the
kagentnamespace:
kubectl create secret generic kagent-openai -n kagent --from-literal OPENAI_API_KEY=YOUR-KEY- Replace the GitHub personal token value in
agents/github-mcp.yaml. - Apply the MCP and agent manifests:
kubectl apply -f agents/github-mcp.yaml
kubectl apply -f agents/gitops-agent.yamlForward the controller service:
kubectl port-forward svc/kagent-controller 8083:8083 -n kagentRun the GitOps agent against your manifests:
kagent --api-url "http://localhost:8083/api" invoke --agent gitops-v3-agent --file demo-cluster/.k8s-gen/manifests.yaml Add your config to demo-cluster/team-platform
run:
cd demo-cluster
makeThis will generate kubernetes manifests in demo-cluster/.k8s-gen/manifests.yaml
The make file is using gitops-chart to create the kubernetes templates.