-
Notifications
You must be signed in to change notification settings - Fork 525
[GEP-28] gardenadm bootstrap
: enable provider-local DNS config
#12836
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] gardenadm bootstrap
: enable provider-local DNS config
#12836
Conversation
Don't enable it within the autonomous shoot cluster itself (both scenarios) Also, don't mutate high-touch machine pods when deploying both scenarios on the same cluster simultaneously (e.g., in CI).
Instead of explicitly creating `NetworkPolicies` in the `garden` and shoot namespaces, we enable the `NetworkPolicy` controllers on the `gardener-extension-provider-local-coredns` namespace, and generate `NetworkPolicies` in the `garden` and shoot namespaces. The `dnsconfig` webhook injects the corresponding labels along with the DNS configuration itself. For enabling the `NetworkPolicy` controllers, we also need to explicitly allow the provider-local coredns to talk to the cluster's coredns in `kube-system`. We're doing this now, because the explicit `NetworkPolicy` `allow-to-provider-local-coredns` cannot be deployed to `garden` namespace because it doesn't exist in `gardenadm bootstrap`.
b75d5ce
to
7904470
Compare
gardenadm bootstrap
: enable provider-local DNS config
/lgtm |
LGTM label has been added. Git tree hash: 7ffdb04daf1d99f44b6d327d35cfad3a9655e280
|
/assign |
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.
Thanks for the next step in the medium-touch GEP-28 story.
Please check the tests. Apart from that, the change looks good.
/lgtm
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ScheererJ 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 |
After a long debugging session on Friday, @hown3d and I discovered the reason for the broken e2e tests. |
@timebertt I did not completely get the problem, but do you want to fix it properly in this PR or a separate one? The mitigation seem to have worked as the tests passed. |
I want to fix it properly in a dedicated PR with a proper explanation 😄 |
/lgtm |
LGTM label has been added. Git tree hash: 7f788705e12693614db0ae91a15350ea493a9dce
|
How to categorize this PR?
/area ipcei
/kind enhancement
What this PR does / why we need it:
In
gardenadm bootstrap
, we need to create aDNSRecord
for pointing to the first control plane machine's internal address. This is needed during the bootstrap phase, where we don't need/have an externally accessible control plane address, but runninggardenadm init
on the control plane machine requires a resolvable control plane address.This PR prepares for creating
DNSRecords
ingardenadm bootstrap
.To resolve local
DNSRecords
, the machine pods need to use the provider-local coredns for resolution instead of the cluster's default coredns.This PR enables the provider-local coredns in
gardenadm bootstrap
as well as thednsconfig
webhook, that injects the coredns IP into machine pods.Which issue(s) this PR fixes:
Part of #2906
Special notes for your reviewer:
/cc @rfranzke @ScheererJ
@maboehm
Release note: