-
Notifications
You must be signed in to change notification settings - Fork 525
[GEP-28] Make provider-local machine hostnames resolvable #12657
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
[GEP-28] Make provider-local machine hostnames resolvable #12657
Conversation
@timebertt: GitHub didn't allow me to request PR reviews from the following users: maboehm. Note that only gardener members and repo collaborators can review this PR, and authors cannot review their own PRs. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
/hold
My original plan was to do this the other way round 🙈 Well, I will prepare the other PR now. |
a9fbbf5
to
8e0fdac
Compare
8e0fdac
to
0531d9d
Compare
I rebased this PR onto #12661. /test pull-gardener-e2e-kind pull-gardener-e2e-kind-gardenadm |
0531d9d
to
0f6f57e
Compare
I adapted this PR to the decision in #12661 (comment). |
/hold cancel |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice, love it!
Thank you.
/lgtm
/approve
LGTM label has been added. Git tree hash: 15d9f2403aa830903d315d3595c35a4a1210b620
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: rfranzke The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
…2657) * Drop outdated docs * Add docs for mcm-provider-local internals * Create Service per Machine * Add permissions for `services` to mcm `ServiceAccount` * provider-local: allow Bastion to resolve node names * Ensure functionality in e2e tests * Drop obsolete TODO
How to categorize this PR?
/area ipcei
/kind enhancement
What this PR does / why we need it:
Typically, machines running in a cloud infrastructure environment can resolve the hostnames of other machines in the same cluster/network. To mimic this behavior in the local setup, the machine provider creates a
Service
for everyMachine
with the same name as thePod
. With this, localNodes
andBastions
can connect to otherNodes
via their hostname.When connecting to a
Node
viagardenctl ssh
, gardenctl prefers the internal IP of aNode
and falls back to the hostname. With this PR, both addresses also work in provider-local (follow-up to #12366).In
gardenadm bootstrap
, we also need to connect to the control plane machines via theBastion
. But there is noNode
object for theMachines
(see gardener/machine-controller-manager#1007).Note that this PR alone is not sufficient for successfully connecting from the
Bastion
to the control plane machine, as the hostname is different from the machine name (the pod has an additionalmachine-
prefix).#12489 will publish to the correct hostname in
Machine.status.addresses
.Hence, this PR is rather a "cleanup" for harmonizing the provider-local machines' behavior with typical cloud infrastructure.
Which issue(s) this PR fixes:
Part of #2906
Special notes for your reviewer:
/cc @ScheererJ @rfranzke @maboehm
In draft until
[GEP-28]gardenadm bootstrap
: DeployControlPlane
resource #12661 has been mergedobsolete with #12661 (comment)
Release note: