Skip to content

Conversation

@matthchr
Copy link
Member

@matthchr matthchr commented May 14, 2025

  • Add kubernetes.azure.com/kubelet-identity-client-id label to all nodes, to match what AKS does.
  • Drift nodes if the expected kubelet-identity-client-id has changed.
  • Does not drift if the node doesn't have the AKS Kubelet ClientID label set.

How was this change tested?

  • Unit tests
  • Manual test with NPS bootstrap, shows nodes now come up with this label: kubernetes.azure.com/kubelet-identity-client-id=fcd9a498-b00b-4757-8c2a-90f6ede47610. Changing it at the configmap scope results in drift and the new node coming up with the new label.

Does this change impact docs?

  • Yes, PR includes docs updates
  • Yes, issue opened: #
  • No

Release Note

Added the kubernetes.azure.com/kubelet-identity-client-id to all nodes and drifts nodes if the expected kubelet-identity-client-id has changed.

@matthchr matthchr force-pushed the matthchr/kubelet-identity-drift branch from 32a9edf to bbdeb68 Compare May 14, 2025 23:44
Copy link
Contributor

@charliedmcb charliedmcb left a comment

Choose a reason for hiding this comment

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

Overall, looks good, but need to check the bootstrappingclient case

@matthchr matthchr force-pushed the matthchr/kubelet-identity-drift branch from bbdeb68 to 6e4fe58 Compare May 15, 2025 01:54
@matthchr matthchr force-pushed the matthchr/kubelet-identity-drift branch from d7bf4c3 to dfacd24 Compare May 16, 2025 18:33
@matthchr matthchr force-pushed the matthchr/kubelet-identity-drift branch 2 times, most recently from 5cd7333 to 3eff98e Compare May 16, 2025 22:35
@matthchr matthchr force-pushed the matthchr/kubelet-identity-drift branch from 3eff98e to 0857587 Compare May 16, 2025 22:56
charliedmcb
charliedmcb previously approved these changes May 16, 2025
Copy link
Contributor

@charliedmcb charliedmcb left a comment

Choose a reason for hiding this comment

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

lgtm, assuming bootstrappingclient ordering is entirely covered.

* Add kubernetes.azure.com/kubelet-identity-client-id label to all nodes,
  to match what AKS does.
* Drift nodes if the expected kubelet-identity-client-id has changed.
* Does not drift if the node doesn't have the AKS Kubelet ClientID label
  set.
@matthchr matthchr force-pushed the matthchr/kubelet-identity-drift branch from 0857587 to fd51e56 Compare May 17, 2025 04:53
@matthchr matthchr merged commit 0c977d5 into main May 17, 2025
16 checks passed
@matthchr matthchr deleted the matthchr/kubelet-identity-drift branch May 17, 2025 05:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants