Jump to content

Kubernetes help


GOLA MANOJ

Recommended Posts

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.

Link to comment
Share on other sites

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 

Link to comment
Share on other sites

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 

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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 

Link to comment
Share on other sites

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… 

Link to comment
Share on other sites

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 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...