drone / charts

Helm charts for the Drone platform on Kubernetes
Other
166 stars 116 forks source link

Add resources for docker-runner's HPA #108

Closed pandalec closed 1 year ago

pandalec commented 1 year ago

I added resources to dind and gc containers, otherwise I am not able to get HPA to work. Problem is that without requests information inside these containers metrics showed unknown and threw errors, like this:

Metrics:                                                  ( current / target )
  resource memory on pods  (as a percentage of request):  Unknown / 60%
  resource cpu on pods  (as a percentage of request):     Unknown / 60%

After adding resources to all pods, I was able to horizontal scale:

Metrics:                                                  ( current / target )
  resource memory on pods  (as a percentage of request):  42% (113977344) / 60%
  resource cpu on pods  (as a percentage of request):     4% (19m) / 60%
Min replicas:                                             1
Max replicas:                                             3
Deployment pods:                                          2 current / 2 desired

BR, panda

jimsheldon commented 1 year ago

Big thanks for this!