How can i update a deployed agent I tried lk agent...
# ask-ai
e
How can i update a deployed agent I tried lk agent create should it be update? to update the changes I have made?
t
Thanks for reaching out, Brian. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
To update a deployed LiveKit agent after making changes, it really depends on where you’ve deployed it. Let me walk you through the options: • LiveKit Cloud: You can simply use the
lk agent deploy
command to redeploy your updated agent. This way, the rollout happens smoothly, letting any active sessions finish naturally before switching over to the new version. • Self-Hosted Kubernetes: Here, you’ll want to update your Docker image with the new version, then tweak your Kubernetes manifest or Helm values file accordingly. After that, just apply the changes using
kubectl
or Helm, and Kubernetes will take care of the rolling update for you. • Other Self-Hosted Platforms (e.g., AWS ECS): For these, rebuild your Docker image, update your service configuration, and apply the changes to your orchestration platform to kick off the deployment update. If you’d like, just let me know your specific deployment environment, and I’d be happy to guide you through the exact steps tailored for your setup! Sources: Deploy to Kubernetes | LiveKit docs | cmd/lk/agent.go | Deploy and scale agents on LiveKit Cloud | aws-ecs/README.md | Agent Session Management & Turn Detection | livekit/livekit_composite | Dee...