Terry Posted October 3, 2022 Share Posted October 3, 2022 (edited) I would like to deploy Ant Media Server (Community Edition) to Kubernetes and set readiness and liveness endpoints for pods. I added a new method in io/antmedia/console/rest/CommonRestService.java` public String healthCheck() { return "OK"; } And in io/antmedia/console/rest/RestService.java, I added @GET @Path("/healthCheck") @Produces(MediaType.TEXT_PLAIN) @Override public String healthCheck() { return "OK"; } And I tried to access http://127.0.0.1:5080/rest/healthCheck , then got Please send me a link of document to research or guide me what I was wrong. P.S: I tried http://127.0.0.1:5080/rest/getVersion and got same repsonse Edited October 3, 2022 by Terry Updated link and added PS Link to comment Share on other sites More sharing options...
0 Yash Posted October 5, 2022 Share Posted October 5, 2022 @Terry 1. It is also valid. You need to call it like http://IP-address:5080/rest/getVersion. Also to call Management Rest APIs, you need to authenticate first using this Rest API. 2. To call application/broadcasts Rest APIs you need to whitelist your IP in Rest filter. 3. Yes, it is expected. To allow all IPs you need to whitelist whole CIDR block 0.0.0.0/0. 4. You can run a standalone server, but you can't scale it because the community edition doesn't support the cluster feature. Link to comment Share on other sites More sharing options...
0 Yash Posted October 3, 2022 Share Posted October 3, 2022 Hi @Terry I hope you are fine. Unfortunately, Kubernetes support is not available in the Community Edition as there is no clustering feature. In order to deploy cluster using Kubernetes, you need to use an Enterprise Edition. To get the Ant media server version you can check this Rest API. Link to comment Share on other sites More sharing options...
0 Terry Posted October 4, 2022 Author Share Posted October 4, 2022 10 hours ago, Yash said: Hi @Terry I hope you are fine. Unfortunately, Kubernetes support is not available in the Community Edition as there is no clustering feature. In order to deploy cluster using Kubernetes, you need to use an Enterprise Edition. To get the Ant media server version you can check this Rest API. Thank you for responding, @Yash. I have some more concerns: Is API https://antmedia.io/rest/#/default/getVersion deprecated? "127.0.0.1" is already added in REST IP Filter, but API response is "Not Allowed IP". How can I log access request to get current IP of requester client? When I log into Admin page and add IP "0.0.0.0" into REST IP Filters and hope it will allow all IP addresses, the server still responses "Not Allowed IP". Is it expected? I turned off Filter, server responses OK. When I mentioned "deploy to Kubernetes", I meant I would like to use docker image and deploy Ant Media Server as a pod on Kubernetes, this is possible, am I correct? There is another issue, I build Docker image from zip file that I downloaded from release base then it's OK. But, when I build with the zip file that I repackage from source code, I always get 404 Not Found, even if for webiste. <- I'm investigating this issue Link to comment Share on other sites More sharing options...
Question
Terry
I would like to deploy Ant Media Server (Community Edition) to Kubernetes and set readiness and liveness endpoints for pods.
I added a new method in io/antmedia/console/rest/CommonRestService.java`
And in io/antmedia/console/rest/RestService.java, I added
And I tried to access http://127.0.0.1:5080/rest/healthCheck , then got
Please send me a link of document to research or guide me what I was wrong.
P.S: I tried http://127.0.0.1:5080/rest/getVersion and got same repsonse
Edited by TerryUpdated link and added PS
Link to comment
Share on other sites
Top Posters For This Question
2
2
Popular Days
Oct 3
2
Oct 4
1
Oct 5
1
Top Posters For This Question
Yash 2 posts
Terry 2 posts
Popular Days
Oct 3 2022
2 posts
Oct 4 2022
1 post
Oct 5 2022
1 post
Posted Images
3 answers to this question
Recommended Posts