Ant-Media-Server
Ant-Media-Server copied to clipboard
Is Antmediaserver Community edition supported on K8s(GKE in particular)?
First question: Is Antmediaserver Community edition supported on K8s? As the doc mentioned below says download EE edition during docker image creation
If yes, it is supported then the following is the issue:
I am following the doc below for antmediaserver setup on GKE: https://resources.antmedia.io/docs/getting-started-with-ant-media-server-kubernetes
Docker image: sagar23192/ant-media-server:version1 AntMediaServer zip used: https://github.com/ant-media/Ant-Media-Server/releases/download/ams-v2.4.3/ant-media-server-community-2.4.3.zip
But the antmediaserver pods go in CrashLoopBackOff. PFB logs of the pods:
TCP no-delay: true keep-alive: false 2022-06-29 13:30:40,720 [main] org.red5.server.net.rtmp.RTMPMinaTransport - Traffic class modification is disabled 2022-06-29 13:30:40,720 [main] org.red5.server.net.rtmp.RTMPMinaTransport - Send buffer size: 65536 recv buffer size: 65536 so linger: -1 traffic class: 0 2022-06-29 13:30:40,732 [main] org.red5.server.ContextLoader - ContextLoader init 2022-06-29 13:30:40,737 [main] org.red5.server.ContextLoader - Loading: default.context = ${red5.root}/webapps/red5-default.xml => /usr/local/antmedia/webapps/red5-default.xml 2022-06-29 13:30:40,765 [main] org.springframework.context.support.FileSystemXmlApplicationContext - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'global.context' defined in URL [file:/usr/local/antmedia/webapps/red5-default.xml]: Unsatisfied dependency expressed through bean property 'clientRegistry'; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [io.antmedia.enterprise.cluster.TcpCluster] for bean with name 'tomcat.cluster' defined in class path resource [jee-container.xml]; nested exception is java.lang.ClassNotFoundException: io.antmedia.enterprise.cluster.TcpCluster 2022-06-29 13:30:40,766 [main] org.springframework.context.support.FileSystemXmlApplicationContext - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'context.loader' defined in class path resource [red5.xml]: Invocation of init method failed; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'global.context' defined in URL [file:/usr/local/antmedia/webapps/red5-default.xml]: Unsatisfied dependency expressed through bean property 'clientRegistry'; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [io.antmedia.enterprise.cluster.TcpCluster] for bean with name 'tomcat.cluster' defined in class path resource [jee-container.xml]; nested exception is java.lang.ClassNotFoundException: io.antmedia.enterprise.cluster.TcpCluster 2022-06-29 13:30:40,767 [main] org.red5.server.net.rtmp.RTMPMinaTransport - RTMP Mina Transport stop 2022-06-29 13:30:40,769 [main] io.antmedia.statistic.StatsCollector - Shutting down stats collector 2022-06-29 13:30:40,770 [main] io.antmedia.statistic.StatsCollector - Ending analytic session 2022-06-29 13:30:40,774 [main] io.antmedia.statistic.StatsCollector - Closing vertx 2022-06-29 13:30:40,775 [main] org.quartz.core.QuartzScheduler - Scheduler Red5_Scheduler_$NON_CLUSTERED shutting down. 2022-06-29 13:30:40,775 [main] org.quartz.core.QuartzScheduler - Scheduler Red5_Scheduler$NON_CLUSTERED paused. 2022-06-29 13:30:40,778 [main] org.quartz.core.QuartzScheduler - Scheduler Red5_Scheduler$_NON_CLUSTERED shutdown complete. Bootstrap exception: Bootstrap exit
Thanks in advance
Also if I delete the error pod the new pods comes up and keeps changing state to end up in the CrashLoopBackOff status:

Hi @cloudcover2021
Unfortunately, the clustering feature is only available for the Enterprise. Please take a look at the following link.
https://resources.antmedia.io/docs/ant-media-server-enterprise-and-community-edition Regards.
@muratugureminoglu Thanks for the reply
It seems that we don't mention about Kubernetes support in the following link
https://resources.antmedia.io/docs/ant-media-server-enterprise-and-community-edition
Let me open the issue and update the doc and then close it again
Updated it.
https://resources.antmedia.io/docs/ant-media-server-enterprise-and-community-edition
The above link is dead.
New link: https://antmedia.io/docs/get-started/enterprise-and-community-edition/