Skip to content

Commit

Permalink
Merge pull request #261 from ant-media/update_eks
Browse files Browse the repository at this point in the history
Update eks
  • Loading branch information
Mohit-3196 authored Apr 19, 2024
2 parents 9a6deae + 4446de5 commit e9c7f69
Show file tree
Hide file tree
Showing 27 changed files with 50 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,95 +15,118 @@ You need to have the [AWS CLI software](https://docs.aws.amazon.com/cli/latest/u

After logging into AWS, search for the **EKS** service and find the **Elastic Kubernetes Service,** then click the **Add Cluster > Create** button.

![image.png](@site/static/img/image-286329.png)
![image.png](@site/static/img/aws-eks/aws-eks-1.png)

* * *

## Step 2: Name the Kubernetes Cluster

After setting a name for the cluster, the Kubernetes version and Cluster Service Role should be selected. You can follow this link to create a [Cluster Service Role](https://docs.aws.amazon.com/eks/latest/userguide/service_IAM_role.html).

![image.png](@site/static/img/image-286429.png)
![image.png](@site/static/img/aws-eks/aws-eks-2.png)

* * *

## Step 3: Configure Networking

In this section, subnets under VPC and VPC should be selected and a security group should be created.

![image.png](@site/static/img/image-286529.png)

Endpoint access should be selected as **Public** and the **Next** button is clicked.

![image.png](@site/static/img/image-286629.png)
![image.png](@site/static/img/aws-eks/aws-eks-3.png)

* * *

## Step 4: Optionally Setup Logging

You can activate the following options for logging.

![image.png](@site/static/img/image-286729.png)
![image.png](@site/static/img/aws-eks/aws-eks-4.png)

* * *

## Step 5: Create the Cluster
## Step 5: Select add-ons

Follow this step with default selections.

![image.png](@site/static/img/aws-eks/aws-eks-5.png)

* * *

## Step 6: Select add-ons

Follow this step with default selections.

![image.png](@site/static/img/aws-eks/aws-eks-6.png)

* * *

## Step 7: Create the Cluster

Let’s confirm the configurations have been set correctly and create the cluster by clicking the **Create** button.

![image.png](@site/static/img/image-286829.png)
![image.png](@site/static/img/aws-eks/aws-eks-7.png)

* * *

## Step 6: Create a Node Group
## Step 8: Create a Node Group

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.

![image.png](@site/static/img/image-286929.png)
![image.png](@site/static/img/aws-eks/aws-eks-8-1.png)

* * *

Type your node name and create the [Node IAM Role](https://docs.aws.amazon.com/eks/latest/userguide/create-node-role.html).

![image.png](@site/static/img/image-287029.png)
![image.png](@site/static/img/aws-eks/aws-eks-8-2.png)

* * *

## Step 7: Scaling Configure
## Step 9: Scaling Configure

Click on the **Next** button after you configure the scaling of the **AMI type, Capacity type, Instance type, Disk and Node Group**.

![image.png](@site/static/img/image-287129.png)
![image.png](@site/static/img/aws-eks/aws-eks-9.png)

* * *

## Step 9: Select Subnets
## Step 10: Select Subnets

Select your subnets and click on the **Next** button.

![image.png](@site/static/img/image-287229.png)
![image.png](@site/static/img/aws-eks/aws-eks-10.png)

* * *

## Step 10: Create the Node Pool
## Step 11: Create the Node Pool

Finally, after checking the configurations, create the Node Pool by clicking on the **Create** button.

![image.png](@site/static/img/image-287329.png)
![image.png](@site/static/img/aws-eks/aws-eks-11.png)

* * *

## Step 11: Update Kubernetes Cluster
## Step 12: Update Security Group

From the **Networking** tab, click on your **Cluster security group**.

![image.png](@site/static/img/aws-eks/aws-eks-12-1.png)

And then open UDP ports 50000-60000.

![image.png](@site/static/img/aws-eks/aws-eks-12-2.png)

## Step 13: Update Kubernetes Cluster

Update the Kubernetes cluster `kubeconfig` settings and then list the nodes with the `kubectl get nodes` command.

aws eks --region your_region update-kubeconfig --name clustername

```
aws eks --region your_region update-kubeconfig --name clustername
```

![image.png](@site/static/img/image-287429.png)
![image.png](@site/static/img/aws-eks/aws-eks-11.png)

* * *
## Step 12: Deploy Ant Media Server
## Step 14: Deploy Ant Media Server

Now, it’s time to deploy Ant Media Server on the Kubernetes cluster by applying the `yaml` files.

Expand Down Expand Up @@ -133,15 +156,15 @@ kubectl create -f ams-k8s-ingress-edge.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.

![image.png](@site/static/img/image-287529.png)
![image.png](@site/static/img/aws-eks/kubectl-1.png)

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.

![image.png](@site/static/img/image-287629.png)
![image.png](@site/static/img/aws-eks/kubectl-1.png)

When we check the Ant Media Server dashboard, we can see that 2 nodes have joined the cluster.

![image.png](@site/static/img/image-287729.png)
![image.png](@site/static/img/aws-eks/ams-dashboard.png)

If you don't want to deal with any of this then I suggest you look at helm deployment.

Expand Down
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Binary file added static/img/aws-eks/aws-eks-12-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/aws-eks/aws-eks-12-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/aws-eks/aws-eks-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Binary file added static/img/aws-eks/aws-eks-3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/aws-eks/aws-eks-4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/aws-eks/aws-eks-5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/aws-eks/aws-eks-6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/aws-eks/aws-eks-7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
Binary file added static/img/aws-eks/aws-eks-8.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Binary file added static/img/aws-eks/kibectl-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/aws-eks/kubectl-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Binary file removed static/img/image-286429.png
Binary file not shown.
Binary file removed static/img/image-286529.png
Binary file not shown.
Binary file removed static/img/image-286729.png
Binary file not shown.
Binary file removed static/img/image-286829.png
Binary file not shown.
Binary file removed static/img/image-287429.png
Binary file not shown.
Binary file removed static/img/image-287529.png
Diff not rendered.

0 comments on commit e9c7f69

Please sign in to comment.