little-train-77668
10/03/2025, 11:03 AMtall-airline-16756
10/03/2025, 11:03 AMtall-airline-16756
10/03/2025, 11:03 AMlivekit/generate tool to create your configuration files, including livekit.yaml and docker-compose.yaml. This will give you a solid base to work from.
2. Next, update your livekit.yaml file with your Redis address and password. For example:
redis:
address: redis.host:6379
password: your_redis_password
1. Make sure your docker-compose.yaml includes both the LiveKit server and Redis services. Here's an example to guide you:
services:
redis:
image: redis
ports:
- "6379:6379"
livekit:
image: livekit/livekit-server
command: --config /livekit.yaml
volumes:
- ./livekit.yaml:/livekit.yaml
ports:
- "7880:7880"
- "7881:7881"
depends_on:
- redis
1. Don't forget to open the necessary ports in your Azure VM's Network Security Group (NSG):
• Ports 7880 (TCP), 7881 (WebRTC TCP), and the UDP range 50000–60000 for media traffic.
1. Finally, run docker-compose up -d to launch your services.
If you run into any hiccups or want to dive deeper into any of these steps, just let me know—I'm here to help you get everything running smoothly!
Sources: Deploy to a VM | LiveKit Docs | config-sample.yaml | README.md | README.md | Self-hosted SIP server | LiveKit Docslittle-train-77668
10/03/2025, 11:05 AMlittle-train-77668
10/03/2025, 11:05 AMtall-airline-16756
10/03/2025, 11:05 AMhelm repo add livekit https://livekit.io/helm/charts
helm repo update
1. Prepare Configuration: You can start with the egress-sample.yaml as your base. Don’t forget to configure Azure Blob Storage for your output like this:
egress:
api_key: "your-livekit-api-key"
api_secret: "your-livekit-api-secret"
ws_url: "wss://your-livekit-server:443"
redis:
address: "your-redis-host:6379"
azure:
account_name: "your-storage-account-name"
account_key: "your-storage-account-key"
container_name: "your-container-name"
For your peace of mind, I highly suggest using Kubernetes Secrets or Managed Identities to keep your credentials safe instead of hardcoding them.
1. Deploy Egress: When you’re ready, install the Helm chart with this command:
helm install my-egress livekit/egress -f values.yaml
1. Verify Installation: To make sure everything is running smoothly, check your pods and logs like this:
kubectl get pods -l app.kubernetes.io/name=egress
kubectl logs <egress-pod-name>
If you run into any bumps along the way or want to dive deeper into any part of the setup, just let me know—I’m here to help!
Sources: Self-hosting the Ingress Service | LiveKit Docs | egress/templates/NOTES.txt | go.sum | Egress output types | LiveKit Docs | Deploy to Kubernetes | LiveKit Docstall-airline-16756
10/03/2025, 11:05 AMhelm repo add livekit https://livekit.io/helm/charts
helm repo update
1. Prepare Configuration: Take a look at the egress-sample.yaml as a starting point. You’ll want to set up Azure Blob Storage for your output, something like this:
egress:
api_key: "your-livekit-api-key"
api_secret: "your-livekit-api-secret"
ws_url: "wss://your-livekit-server:443"
redis:
address: "your-redis-host:6379"
azure:
account_name: "your-storage-account-name"
account_key: "your-storage-account-key"
container_name: "your-container-name"
1. Deploy the Helm Chart: When you’re ready, deploy with this command:
helm install my-egress livekit/egress -f values.yaml
1. Verify Installation: Finally, check how things are running by looking at your pod status and logs:
kubectl get pods -l app.kubernetes.io/name=egress
kubectl logs <egress-pod-name>
If you run into any bumps or want a hand with specific settings or troubleshooting, just reach out—I’m here to help you every step of the way!little-train-77668
10/03/2025, 12:42 PMtall-airline-16756
10/03/2025, 12:42 PMmy-egress in the command is simply the release name you choose for this Helm deployment. It can be any name that feels right to you to help identify this particular deployment of the LiveKit Egress service in your AKS cluster.
For example, you might use:
helm install livekit-egress livekit/egress -f values.yaml
In this case, livekit-egress is the release name. Feel free to pick any name that makes sense and helps you easily manage and recognize the deployment later on.
If you have any more questions or need a hand with anything else, just let me know—I’m here to help!little-train-77668
10/04/2025, 2:58 AMtall-airline-16756
10/04/2025, 2:58 AMlittle-train-77668
10/04/2025, 3:06 AMtall-airline-16756
10/04/2025, 3:06 AMautoscaling.enabled: true and specifying minReplicas and maxReplicas. This way, the Egress service can smartly scale based on CPU usage or even custom metrics like livekit_egress_available.
2. Set Resource Requests and Limits: It’s a good idea to allocate enough CPU and memory—something like 4 CPUs and 4 GB RAM per instance—to help with faster scheduling and to avoid any resource shortages.
3. Use Graceful Termination: Configuring terminationGracePeriodSeconds (for example, 3600 seconds) lets your in-progress Egress jobs finish smoothly before the pod shuts down during scale-down.
4. Optimize Job Distribution: Running multiple Egress workers and balancing jobs through Redis can really boost efficiency by making the most of your available instances.
Following these steps should help you reduce overhead time while keeping resource usage efficient. If you’d like, I’m here to assist you with setting up any of these options—just let me know!
Sources: Deploy to Kubernetes | LiveKit Docs | egress/values.yaml | Self-hosting the Egress Service | LiveKit Docslittle-train-77668
10/04/2025, 3:10 AMtall-airline-16756
10/04/2025, 3:11 AMhelm repo add livekit https://livekit.io/helm/charts
helm repo update
1. Prepare the Configuration: You can start with the egress-sample.yaml as a template. Be sure to update it with your Azure Blob Storage and Redis details like this:
egress:
api_key: "your-livekit-api-key"
api_secret: "your-livekit-api-secret"
ws_url: "wss://your-livekit-server:443"
redis:
address: "your-redis-host:6379"
azure:
account_name: "your-storage-account-name"
account_key: "your-storage-account-key"
container_name: "your-container-name"
For enhanced security, I recommend using Kubernetes Secrets or Managed Identities to handle your Azure Blob Storage credentials safely.
1. Enable Autoscaling: To make sure your deployment scales smoothly, configure autoscaling in your YAML file like this:
autoscaling:
enabled: true
minReplicas: 1
maxReplicas: 10
targetCPUUtilizationPercentage: 60
1. Deploy the Helm Chart: When you’re ready, deploy by running:
helm install egress-release livekit/egress -f values.yaml
1. Verify Deployment: Finally, check on your pods and their logs to ensure everything is running smoothly:
kubectl get pods -l app.kubernetes.io/name=egress
kubectl logs <egress-pod-name>
If you have any questions about customizing the YAML file or run into any issues during deployment, please don’t hesitate to reach out. I’m here to help you every step of the way!