Skip to content
This repository was archived by the owner on Jan 27, 2021. It is now read-only.
This repository was archived by the owner on Jan 27, 2021. It is now read-only.

HPA not working since osiris-proxy sidecar has no option to set resource request or limit #46

@TheEvilCoder42

Description

@TheEvilCoder42

Environment:

  • Kubernetes distribution (e.g. AKS, ACS Engine, GKE, EKS, etc.): AWS EKS
  • Kubernetes version (use kubectl version): 1.14
  • Osiris version (specify by SHA or semver): 113a458
  • Install method (specify exact helm install command used): helm install osiris/osiris-edge --name osiris --namespace osiris-system --devel

What happened?
Tried to configure Horizontal Pod Autoscaler on Pod where Osiris is enabled.
HPA complains about a missing resource request, it works without the osiris-proxy sidecar.

Name:                                                  example-app-hpa
Namespace:                                             tenant-1
Labels:                                                <none>
Annotations:                                           kubectl.kubernetes.io/last-applied-configuration:
                                                         {"apiVersion":"autoscaling/v1","kind":"HorizontalPodAutoscaler","metadata":{"annotations":{},"name":"example-app-hpa","namespace":"tenant-...
CreationTimestamp:                                     Fri, 18 Oct 2019 14:41:41 +0200
Reference:                                             Deployment/example-app-deployment
Metrics:                                               ( current / target )
  resource cpu on pods  (as a percentage of request):  <unknown> / 85%
Min replicas:                                          1
Max replicas:                                          5
Deployment pods:                                       0 current / 0 desired
Conditions:
  Type           Status  Reason             Message
  ----           ------  ------             -------
  AbleToScale    True    SucceededGetScale  the HPA controller was able to get the target's current scale
  ScalingActive  False   ScalingDisabled    scaling is disabled since the replica count of the target is zero
Events:
  Type     Reason                        Age                From                       Message
  ----     ------                        ----               ----                       -------
  Warning  FailedGetResourceMetric       14m (x5 over 15m)  horizontal-pod-autoscaler  unable to get metrics for resource cpu: no metrics returned from resource metrics API
  Warning  FailedComputeMetricsReplicas  14m (x5 over 15m)  horizontal-pod-autoscaler  failed to get cpu utilization: unable to get metrics for resource cpu: no metrics returned from resource metrics API
  Warning  FailedComputeMetricsReplicas  12m (x7 over 14m)  horizontal-pod-autoscaler  failed to get cpu utilization: missing request for cpu
  Warning  FailedGetResourceMetric       12m (x8 over 14m)  horizontal-pod-autoscaler  missing request for cpu

What you expected to happen?
HPA should work on Pod where Osiris is enabled.
There should be a possibility to configure the osiris-proxy sidecar container.

How to reproduce it (as minimally and precisely as possible):
Enable Osiris on a deployment, configure HPA for this deployment too.
Osiris will work, HPA will report a missing resource request.

Anything else that we need to know?
Didn't found any possibility to set the resources on the osiris-proxy sidecar container.
I tried setting the resources on all containers by passing it in a yaml file when installing with helm but this didn't affected the osiris-proxy sidecar.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions