Skip to content

Add support for scheduleGroups - #760

Merged
mikkeloscar merged 1 commit into
masterfrom
schedule-groups
Oct 8, 2026
Merged

mikkeloscar merged 1 commit into
masterfrom
schedule-groups

Conversation

@mikkeloscar

Copy link
Copy Markdown
Contributor

This extends the autoscaler.clusterScalingSchedule type with scheduleGroups support as introduced in zalando-incubator/kube-metrics-adapter#932

It allows opting in to a subset of scheduleGroups for a schedule like this:

autoscaler:
  metrics:
    - type: ClusterScalingSchedule
      average: 200  # 50 Pods as 10k/50 = 200
      clusterScalingSchedule:
          name: "schedule-x"
      # new feature:
      scheduleGroups:
      - cyber-week

which is translated to the underlying HPA with this config:

metrics:
  - type: Object
    object:
      describedObject:
        apiVersion: zalando.org/v1
        kind: ClusterScalingSchedule
        name: "schedule-x"
      metric:
        name: "schedule-x"
        selector:
          matchExpressions:
          - key: schedule-group
            operator: In
            values:
            - cyber-week
      target:
        type: AverageValue
        averageValue: "200"

Signed-off-by: Mikkel Oscar Lyderik Larsen <mikkel.larsen@zalando.de>
Comment thread docs/stack_crd.yaml
@mikkeloscar

Copy link
Copy Markdown
Contributor Author

👍

@mikkeloscar
mikkeloscar merged commit e4f8d46 into master Oct 8, 2026
8 checks passed
@mikkeloscar
mikkeloscar deleted the schedule-groups branch October 8, 2026 19:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants