Files
kubernetes/pkg/kubelet/kubelet_node_status.go
Abhijit Hoskeri c7e4e831dd node self-register continue if CREATE is 403.
tryRegisterWithAPIServer issues node create requests
regardless of whether the Node already exists.

If there's an admission policy forbidding the creation
of new nodes, the policy would return 403 even if the
Node actually exists.

This change makes Kubelet proceed to attempt to GET
the node in case the Create returns 403.

The feature `KubeletRegistrationGetOnExistsOnly`
restores the previous behavior.
2024-09-05 01:22:44 +00:00

32 KiB