Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use kubernetes URL from join token to validate node connectivity #799

Merged
merged 1 commit into from
Dec 9, 2024

Conversation

kke
Copy link
Contributor

@kke kke commented Nov 25, 2024

Fixes #798

The join token, once decoded, contains the kube (workers) or k0s (controllers) API URL that the node will use to communicate to the control plane.

Instead of trying to replicate the logic of k0s choosing which address to validate against, use the address (and certs) provided by k0s inside the token, because that is what the node will do.

@kke kke added the bug Something isn't working label Nov 25, 2024
@kke kke force-pushed the validate-connection-externaladdress branch 3 times, most recently from 61068ae to 6a5d5c7 Compare November 25, 2024 13:30
@kke kke changed the title Use spec.api.externalAddress to validate worker connectivity Use kube API URL encoded inside token to validate node connectivity Nov 25, 2024
@kke kke changed the title Use kube API URL encoded inside token to validate node connectivity Use kubernetes URL in join token to validate node connectivity Nov 25, 2024
@kke kke changed the title Use kubernetes URL in join token to validate node connectivity Use kubernetes URL from join token to validate node connectivity Nov 29, 2024
@kke kke force-pushed the validate-connection-externaladdress branch 6 times, most recently from 2e5425b to 8709a9d Compare December 4, 2024 12:10
@kke kke requested review from twz123 and jnummelin December 4, 2024 12:11
@kke kke force-pushed the validate-connection-externaladdress branch from 8709a9d to 6fb630f Compare December 9, 2024 07:43
@kke kke merged commit b361d94 into main Dec 9, 2024
39 checks passed
@kke kke deleted the validate-connection-externaladdress branch December 9, 2024 08:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

v0.19.4 mistakenly connecting to leader internal IP instead of externalAddress
1 participant