ant-media / Ant-Media-Server

Ant Media Server is a live streaming engine software that provides adaptive, ultra low latency streaming by using WebRTC technology with ~0.5 seconds latency. Ant Media Server is auto-scalable and it can run on-premise or on-cloud.
https://antmedia.io
Other
4.29k stars 632 forks source link

Support MicroK8s with Ant Media Server #4323

Open mekya opened 2 years ago

muratugureminoglu commented 2 years ago

The installation steps of Ant Media Server with microk8s on Ubuntu 20.04 are as follows.

1. Run the following command below to start the snap

sudo systemctl start snapd.socket

2. Run the following command to install MicroK8s on your Ubuntu system

sudo snap install microk8s --classic

3. Start a service by running the following command:

microk8s start

4. If you don't enable DNS, you get the error "Temporary failure in name resolution." And, Ant Media Server will not run.

microk8s enable dns

5. Download YAML files from repo (https://github.com/ant-media/Scripts/tree/master/kubernetes) 6. Then create your cluster by using the yaml files as follows.

microk8s kubectl create -f ams-k8s-mongodb.yaml
microk8s kubectl create -f ams-k8s-deployment.yaml
microk8s kubectl create -f ams-k8s-hpa.yaml
microk8s kubectl create -f ams-k8s-ingress.yaml (Don't forget to first install the Kubernetes Ingress https://resources.antmedia.io/docs/kubernetes-ingress)