mirror of
https://github.com/floci-io/floci.git
synced 2026-11-30 17:05:21 -05:00
fix(eks): name an EKS Auto Mode node by its instance ID when its image runs a kubelet (#9785)
An EKS Auto Mode instance whose image's own kubelet registers its node (kubeletRegistersNode) was looked for under its private DNS name, while the node is authenticated as system:node:<instance-id>. Node restriction refuses that kubelet a node under the DNS name, and one registered under the instance ID was never found, so the instance was terminated once its registration wait was up. The node is now named by the instance ID whoever registers it, and the NodeConfig Auto Mode launches with turns on nodeadm's InstanceIdNodeName feature gate, so the kubelet registers it under that name.
This commit is contained in:
1 parent
c759246a4a
commit
b356fefeae
5 files changed
+33
-6
No files matched your search
@@ -504,7 +504,8 @@ launches nodes on AWS. Floci checks every 10 seconds.
|
||||
`eks.amazonaws.com/instance-*` category, generation, family, size, CPU and memory labels. The node is named by its
|
||||
instance ID (`i-0123456789abcdef0`), as are its `kubernetes.io/hostname` label, as AWS names Auto Mode's nodes; its
|
||||
`InternalDNS` and `Hostname` addresses keep the private DNS name (`ip-10-0-1-10.ec2.internal`). An image whose own
|
||||
kubelet registers the node keeps the name that kubelet gives it.
|
||||
kubelet registers the node is told so too: the `NodeConfig` turns on nodeadm's `InstanceIdNodeName` feature gate,
|
||||
and the node authenticates as `system:node:<instance-id>`.
|
||||
- **Empty nodes.** A node that runs no workload (DaemonSet and static pods aside) and that no pending pod is counting
|
||||
on is removed once it has been empty for its pool's `disruption.consolidateAfter`, as Auto Mode's consolidation
|
||||
removes it: it is tainted `karpenter.sh/disrupted:NoSchedule`, as Karpenter marks a node it removes, and unless
|
||||
@@ -555,7 +556,6 @@ launches nodes on AWS. Floci checks every 10 seconds.
|
||||
|
||||
Each node is a managed instance, as on AWS: its `Operator` names `eks.amazonaws.com`, and a plain
|
||||
`DescribeInstances` or `DescribeInstanceStatus` leaves it out (see [EC2](ec2.md#managed-instances)).
|
||||
An image whose own kubelet registers its node keeps the name that kubelet gives it, not the instance ID.
|
||||
Floci doesn't replace underutilized nodes with smaller ones, and a NodeClaim's requirements name only the instance
|
||||
type chosen, where AWS lists every type that would do.
|
||||
|
||||
|
||||
Reference in new issue
Block a user