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

Add topologySpreadConstraint to gha-runner-scale-set-controller chart #3405

Merged

Conversation

DaazKu
Copy link
Contributor

@DaazKu DaazKu commented Apr 4, 2024

Adds topologySpreadConstraint to gha-runner-scale-set-controller so that we can spread replicas across AZs like so:

topologySpreadConstraints:
  - labelSelector:
      matchLabels:
        app.kubernetes.io/name: gha-rs-controller # Or "nameOverride" if defined
    maxSkew: 1
    topologyKey: topology.kubernetes.io/zone
    whenUnsatisfiable: DoNotSchedule

Reference: https://kubernetes.io/docs/concepts/scheduling-eviction/topology-spread-constraints/

@DaazKu DaazKu force-pushed the chart-gha-rssc-topologyspreaconstraint branch from 9971251 to 5e68aa8 Compare April 4, 2024 14:43
@DaazKu DaazKu marked this pull request as ready for review April 4, 2024 14:48
Copy link
Contributor

@nikola-jokic nikola-jokic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please run go fmt ☺️

charts/gha-runner-scale-set-controller/values.yaml Outdated Show resolved Hide resolved
@nikola-jokic nikola-jokic added the gha-runner-scale-set Related to the gha-runner-scale-set mode label Apr 8, 2024
@DaazKu DaazKu force-pushed the chart-gha-rssc-topologyspreaconstraint branch from 53912dc to 846a17d Compare April 8, 2024 12:59
@DaazKu DaazKu requested a review from nikola-jokic April 8, 2024 13:00
Copy link
Contributor

@nikola-jokic nikola-jokic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@nikola-jokic nikola-jokic merged commit 0006dd5 into actions:master Apr 12, 2024
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
gha-runner-scale-set Related to the gha-runner-scale-set mode
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants