-
Notifications
You must be signed in to change notification settings - Fork 625
How to install Ant Media Server on AWS EKS
Attention: We have migrated our documentation to our new platform, Ant Media Resources. Please follow this link for the latest and up-to-date documentation.
In this post, I'm going to guide you on how to run Ant Media Server on AWS EKS.
1. After you logged in to AWS, search the EKS
keyword, find the Elastic Kubernetes Service
and click the Add Cluster > Create
button.
2. After setting a name for your cluster, the Kubernetes version and Cluster Service Role should be selected. You can follow this link to create a Cluster Service Role.
3. In this section, subnets under VPC and VPC should be selected and a security group should be created.
Endpoint access should be selected as Public
and the Next button is clicked.
4. You can activate the following options for logging.
5. Let’s check the configurations you set and create the cluster by clicking the Create
button.
6. When your cluster’s status is changed from pending to active, click on the Configuration > Compute
tab and click on the Add Node Group
button.
7. Type your node name and create the Node IAM Role.
8. Click on the Next
button after you configure the scaling of the AMI type, Capacity type, Instance type, Disk and Node Group
.
9. Select your subnets and click on the Next
button.
- Finally, after checking the configurations, create the Node Pool by clicking on the
Create
button.
11. Update your Kubernetes kubeconfig
settings as below, then list your nodes with the kubectl get nodes
command.
aws eks --region your_region update-kubeconfig --name clustername
12. Now, it’s time to deploy the Ant Media Server. Create the yaml
files in order as follows.
First, you should organize your image field since you are going to change images. Here are the steps to organize your image field:
wget https://raw.githubusercontent.com/ant-media/Scripts/master/kubernetes/ams-k8s-deployment.yaml
kubectl create -f ams-k8s-deployment.yaml
kubectl create -f https://raw.githubusercontent.com/ant-media/Scripts/master/kubernetes/ams-k8s-hpa.yaml
kubectl create -f https://raw.githubusercontent.com/ant-media/Scripts/master/kubernetes/ams-k8s-rtmp.yaml
wget https://raw.githubusercontent.com/ant-media/Scripts/master/kubernetes/ams-k8s-ingress.yaml
Once the changes on the ams-k8s-ingress.yaml
file are done, let’s create our ingress.
kubectl create -f ams-k8s-ingress.yaml
If everything works well, you will see the public IP address/domain name in the kubectl get ingress
command’s output. After you make your DNS registration, you will be able to access over the domain you have determined.
Run kubectl get services
command to get the RTMP address. You can send broadcasts over 1935 to the domain name that appears as EXTERNAL-IP.
When we check the AMS dashboard, we can see that 2 nodes have joined the cluster.
- Introduction
- Quick Start
- Installation
- Publishing Live Streams
- Playing Live Streams
- Conference Call
- Peer to Peer Call
- Adaptive Bitrate(Multi-Bitrate) Streaming
- Data Channel
- Video on Demand Streaming
- Simulcasting to Social Media Channels
- Clustering & Scaling
- Monitor Ant Media Servers with Apache Kafka and Grafana
- WebRTC SDKs
- Security
- Integration with your Project
- Advanced
- WebRTC Load Testing
- TURN Servers
- AWS Wavelength Deployment
- Multi-Tenancy Support
- Monitor Ant Media Server with Datadog
- Clustering in Alibaba
- Playlist
- Kubernetes
- Time based One Time Password
- Kubernetes Autoscaling
- Kubernetes Ingress
- How to Install Ant Media Server on EKS
- Release Tests
- Spaceport Volumetric Video
- WebRTC Viewers Info
- Webhook Authentication for Publishing Streams
- Recording Streams
- How to Update Ant Media Server with Cloudformation
- How to Install Ant Media Server on GKE
- Ant Media Server on Docker Swarm
- Developer Quick Start
- Recording HLS, MP4 and how to recover
- Re-streaming update
- Git Branching
- UML Diagrams