Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Temporal Helm Chart Target Type #8

Open
tjsampson opened this issue Apr 9, 2024 · 0 comments
Open

Temporal Helm Chart Target Type #8

tjsampson opened this issue Apr 9, 2024 · 0 comments

Comments

@tjsampson
Copy link

I tried installing the chart with autoscaling and the HPA failed. Pretty sure you need to update the hpa.yaml template metrics to look like this:

  metrics:
  {{- if $serviceValues.autoscaling.targetCPUUtilizationPercentage }}
    - type: Resource
      resource:
        name: cpu
        target:
          type: Utilization
          averageUtilization: {{ $serviceValues.autoscaling.targetCPUUtilizationPercentage }}
  {{- end }}
  {{- if $serviceValues.autoscaling.targetMemoryUtilizationPercentage }}
    - type: Resource
      resource:
        name: memory
        target:
          type: Utilization
          averageUtilization: {{ $serviceValues.autoscaling.targetMemoryUtilizationPercentage }}
  {{- end }}

Instead of this:

  metrics:
  {{- if $serviceValues.autoscaling.targetCPUUtilizationPercentage }}
    - type: Resource
      resource:
        name: cpu
        targetAverageUtilization: {{ $serviceValues.autoscaling.targetCPUUtilizationPercentage }}
  {{- end }}
  {{- if $serviceValues.autoscaling.targetMemoryUtilizationPercentage }}
    - type: Resource
      resource:
        name: memory
        targetAverageUtilization: {{ $serviceValues.autoscaling.targetMemoryUtilizationPercentage }}
  {{- end }}

Here is an example from the kubernets docs: https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale-walkthrough/#autoscaling-on-multiple-metrics-and-custom-metrics

  metrics:
  - type: Resource
    resource:
      name: cpu
      target:
        type: Utilization
        averageUtilization: 50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant