Azure / Azure/aksArc

Better VM/FCM Resource naming and k8s node naming

Open
#122 1 comment 0 reactions 1 assignee Assigned to @abhilashaagarwala View on GitHub
Enhancement
Dominant language
PowerShell
Stars
118
Forks
63
PR merge metrics
No merged PRs in 30d

Description

Currently, when a VM is created, it has a name that looks like:

`AKSCLUSTERNAME-USAGE-UNIQUEID`

Where...

- AKSCLUSTERNAME = duh
- USAGE = ControlPlane, NodePool, LoadBalancer
- UNIQUEID = some UID that isn't a GUID

However, in k8s itself, the nodes take the format:

`moc-UNIQUEID`

Where...

- UNIQUEID = L{UID}, W{UID} (depending if Linux or Windows)

**Some suggestions:**

- Unify the UNIQUEID used between Hyper-V, FCM, and k8s so that it doesn't require looking in 5 different spots to correlate a k8s node and its VM/FCM resource
- Update the k8s UNIQUEID prefix of L or W to also include if ControlPlane or NodePool (this helps differentiating in Az Monitor Node view)

I understand that hostname size is probably limited to 15 chars because of the Windows worker nodes, so maybe trim the UID by a character or something?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.