Skip to content

Option to use AZ ID in topology.kubernetes.io/zone label #1185

@superbrothers

Description

@superbrothers

What would you like to be added:

An option (defaulting to false) in aws-cloud-controller-manager to populate the topology.kubernetes.io/zone label with the Availability Zone ID instead of the zone name.

Why is this needed:

Currently, aws-cloud-controller-manager sets the topology.kubernetes.io/zone label using the zone name (e.g., ap-northeast-1a). However, in clusters composed of EC2 instances from multiple AWS accounts, zone names may not map to the same physical Availability Zone. This leads to incorrect behavior in Kubernetes features that rely on consistent zone labeling.

While support for topology.k8s.aws/zone-id was added in #300, Kubernetes features like Service Traffic Distribution require the use of the standard topology.kubernetes.io/zone label and cannot be configured to use a different label.

/kind feature

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/featureCategorizes issue or PR as related to a new feature.needs-triageIndicates an issue or PR lacks a `triage/foo` label and requires one.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions