GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [EKS] [Community Addon kube-state-metrics]: Expose service.trafficDistribution · Issue #2927 · aws/containers-roadmap

[EKS] [Community Addon kube-state-metrics]: Expose service.trafficDistribution #2927

New issue
Copy link
New issue
Copy link
Backlog
Backlog
[EKS] [Community Addon kube-state-metrics]: Expose service.trafficDistribution#2927
Copy link
Labels
EKSAmazon Elastic Kubernetes ServiceEKS Add-Ons

Description

@ranyhb
ranyhb
opened on Nov 24, 2026
Issue body actions

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Tell us about your request
Expose service.trafficDistribution in the configuration schema of the kube-state-metrics community add-on:

{"service": {"trafficDistribution": "PreferSameZone"}}

The upstream chart supports it from kube-state-metrics chart 9.1.0 (prometheus-community/helm-charts#7623). It is empty by default, so nothing changes unless it is set.

Which service(s) is this request for?
EKS

Tell us about the problem you're trying to solve. What are you trying to do, and why is it hard?
With prometheus.scrapeconfig.enabled: true, the add-on creates a ScrapeConfig with a static target on the Service (kube-state-metrics.kube-state-metrics.svc:8080). kube-proxy then sends each scrape to any kube-state-metrics replica, often in another AZ. With one replica per zone (the add-on already exposes replicas and topologySpreadConstraints) and trafficDistribution: PreferSameZone, each scrape stays in its own zone and the cross-AZ transfer goes away.

The schema has "additionalProperties": false and no service key (checked up to v2.20.0-eksbuild.11), so the value cannot be set today.

Are you currently working around this issue?
We patch spec.trafficDistribution on the add-on's Service with a separate server-side apply patch. It works, but it lives outside the add-on, and we would like to drop it.

Additional context
Same request as #2628 for CoreDNS, which is now supported. Related: #2591 (exposing prometheus values for this add-on).

Attachments
None.

Reacted by Constantin Bugneac

Activity

  1. mikestef9
    added
    EKSAmazon Elastic Kubernetes Service
    EKS Add-Ons
    on Nov 24, 2026
  2. knottnt commented on Nov 25, 2026

    @knottnt
    knottnt
    on Nov 25, 2026
    More actions

    Thanks @ranyhb for raising this issue. The team will take a look at adding this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    EKSAmazon Elastic Kubernetes ServiceEKS Add-Ons

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.