GOLA MANOJ Posted July 20, 2022 Report Posted July 20, 2022 Hi, any Kubernetes experts here? Need some help with an assignment Quote
tennisluvrredux Posted July 20, 2022 Report Posted July 20, 2022 What's your issue? Not an expert but have resources Quote
GOLA MANOJ Posted July 20, 2022 Author Report Posted July 20, 2022 This is the assignment Build a simple hello world web server that scales based on the number of http requests received. The number of http requests and pods will need to be exported and accessible real time in a dashboard - feel free to use any of the monitoring tools out there. Quote
dasari4kntr Posted July 20, 2022 Report Posted July 20, 2022 kubectl autoscale deployment hello-world --min=1 --max=3 --cpu-percent=50 horizontalpodautoscaler.autoscaling/hello-world autoscaled Quote
GOLA MANOJ Posted July 20, 2022 Author Report Posted July 20, 2022 Http requests is a custom metric. So we need to expose custom metrics in the cluster and use hpa to scale . This can be done by using Prometheus adapter, but we need to expose that metric from Prometheus then Prometheus adapter will capture it. That part I am unable to configure Quote
GOLA MANOJ Posted July 20, 2022 Author Report Posted July 20, 2022 14 minutes ago, dasari4kntr said: kubectl autoscale deployment hello-world --min=1 --max=3 --cpu-percent=50 horizontalpodautoscaler.autoscaling/hello-world autoscaled Need to scale based on no of http requests Quote
dkchinnari Posted July 20, 2022 Report Posted July 20, 2022 15 minutes ago, GOLA MANOJ said: Http requests is a custom metric. So we need to expose custom metrics in the cluster and use hpa to scale . This can be done by using Prometheus adapter, but we need to expose that metric from Prometheus then Prometheus adapter will capture it. That part I am unable to configure prometheus install chesava cluster lo? Quote
GOLA MANOJ Posted July 20, 2022 Author Report Posted July 20, 2022 1 minute ago, dkchinnari said: prometheus install chesava cluster lo? Yeah. Prometheus and grafana helm chart install chesa . But Prometheus pod lo configuration change cheyali http requests no ni expose cheyadaniki Quote
LadiesTailor Posted July 20, 2022 Report Posted July 20, 2022 6 minutes ago, GOLA MANOJ said: Yeah. Prometheus and grafana helm chart install chesa . But Prometheus pod lo configuration change cheyali http requests no ni expose cheyadaniki I think you need ingress infront of your app to track down http requests… or use istio ingress gateway to count No of http requests… But I’m stuck at auto scaling based on this metric… Quote
GOLA MANOJ Posted July 20, 2022 Author Report Posted July 20, 2022 2 minutes ago, LadiesTailor said: This doc has some references… Will take a look. Thank you Quote
hunkyfunky2 Posted July 21, 2022 Report Posted July 21, 2022 I can help if you are stuck, we did similar thing Quote
dkchinnari Posted July 21, 2022 Report Posted July 21, 2022 19 minutes ago, hunkyfunky2 said: I can help if you are stuck, we did similar thing pls post here..it will help others too.. Quote
GOLA MANOJ Posted July 21, 2022 Author Report Posted July 21, 2022 53 minutes ago, hunkyfunky2 said: I can help if you are stuck, we did similar thing Yes, please. I have been working on it for the past 2 days but still couldn't solve it Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.