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

🐛 Talos does not change the network configuration before installation #7808

Closed
Tracked by #7561
uhthomas opened this issue Sep 29, 2023 · 5 comments
Closed
Tracked by #7561
Assignees

Comments

@uhthomas
Copy link
Contributor

Bug Report

Description

It's usually a good idea to use DNS instead of an IP address for the control plane endpoint, but higher the barrier for entry given the need for an external DNS provider.

A simple solution to avoid this is to use extraHostEntries which resolves the domain name locally. Unfortunately, this is not possible to do during installation as the network configuration is not updated.

Logs

Lots of logs about not being able to resolve the domain name, I don't have a picture - sorry.

Environment

  • Talos version: v1.5.3
  • Kubernetes version: N/A
  • Platform: bare metal
@smira
Copy link
Member

smira commented Sep 29, 2023

something I could look into at some point, but with KubePrism changing control plane should be super easy and non-disruptive

@smira smira changed the title Talos does not change the network configuration before installation 🐛 Talos does not change the network configuration before installation Nov 28, 2023
@smira smira self-assigned this Dec 4, 2023
@smira
Copy link
Member

smira commented Dec 4, 2023

I can't reproduce the issue in this ticket, a hostname added to extraHostEntries works even before the install is executed, it might take a retry attempt for it to be available, but it works.

@smira smira closed this as not planned Won't fix, can't repro, duplicate, stale Dec 4, 2023
@devantler
Copy link

devantler commented May 31, 2024

@smira Hi, it seems the /etc/hosts is not populated during installation, and thus:

a hostname added to extraHostEntries works even before the install is executed no longer is true.

This is a bit problematic for us, as we aim to use Talos in an airgapped environment, where DNS and NTP is not available at install. We rely on the extraHostEntries to reach a docker registry that can provide the installation images.

We use Talos v1.7.4.

@trarbr

@smira
Copy link
Member

smira commented May 31, 2024

First of all, please open a new issue and submit the logs which describe the issue. It's quite impossible to understand what is going on so far.

Plus, for docker images you can use registry mirrors feature to redirect.

I'm pretty sure that /etc/hosts is populated, so I need to see the actual logs to understand the problem better.

@devantler
Copy link

That makes sense! I will create an issue with the necessary context/logs next week :-)

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 31, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants