harbor-helm icon indicating copy to clipboard operation
harbor-helm copied to clipboard

add feature HPA on core, trivy and registry

Open flbla opened this issue 2 years ago • 10 comments

Hello, It could be great to have HPA (horizontal pod autoscaling) option on core, trivy and registry.

In my case I have few load during night, but much more during day as dev teams are building images and doing a lot of deployments.

Thanks

flbla avatar Oct 12 '21 09:10 flbla

We need to do some investigation for the HPA first

ywk253100 avatar Oct 28 '21 07:10 ywk253100

@ywk253100 : any ETA for this feature ?

flbla avatar Dec 01 '21 16:12 flbla

Hello @ywk253100 , ywk253100 , It's the same request that i wanted to come up with. I'm also facing the same issue and need HPA enabled for the registry and core pods. any ETA on this feature ? or Is there any alternative method to apply HPA to the clusters ?

Please let me know as soon as possible because we are expecting a huge traffic with an application release and need HPA to be implemented ASAP.

Tejuvmware avatar Dec 16 '21 18:12 Tejuvmware

is there any information about the HPA? Would be nice to have it

pascalrimann avatar Oct 21 '22 13:10 pascalrimann

We are in the same boat and would like to automatically scale up based on demand (example during scheduled scans of all images)

yashid-mohamed avatar May 09 '23 13:05 yashid-mohamed

We need to do some investigation for the HPA first

We also have this requirement. What kind of investigations need to be done?

How have people in this thread mitigated their issues? Did you add your own HPAs?

plodocus avatar Jul 21 '23 09:07 plodocus

How have people in this thread mitigated their issues? Did you add your own HPAs? yes, I created my own

flbla avatar Jul 21 '23 11:07 flbla

@flbla Can you please shed some light on your HPA setup ? we are using helm chart deployment for our harbor setup, and looking to implement a HPA for Trivy based on the load.

rekha-prakash-maersk avatar Sep 07 '23 12:09 rekha-prakash-maersk

it depends of your need I choosed to do it with external metrics based on the harbor_task_queue_size/image_scan metric. it's a metric exposed by the harbor exporter.

flbla avatar Sep 07 '23 14:09 flbla

I've added HPA and Kepa autoscaling on this PR: https://github.com/goharbor/harbor-helm/pull/1756

xoanmi avatar May 14 '24 13:05 xoanmi