-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Using the none driver sets the hostname to 'control-plane' #11220
Comments
This happens when systemd co-conspires with NetworkManager.
Adding the address entry to the /* Hostname precedence order:
*
* 1) a configured hostname (from settings)
* 2) automatic hostname from the default device's config (DHCP, VPN, etc)
* 3) the last hostname set outside NM
* 4) reverse-DNS of the best device's IPv4 address
*
*/ |
Here is the way to reproduce this behaviour:
This does not happen with Ubuntu 18.04, though. (it uses systemd, but it doesn't use |
Also we add another entry for localhost, as "host.minikube.internal".
Not sure if that makes any sense either, maybe just remove both ? |
This should be as simple as skipping setting the hostname for the none or ssh drivers. Help wanted! |
This is actually a systemd "feature", and not something that is caused by minikube: https://www.freedesktop.org/wiki/Software/systemd/hostnamed/ If you have a system without a "proper" hostname, and it gets a network interface host. $ hostnamectl
Static hostname: localhost.localdomain
Transient hostname: control-plane.minikube.internal
Icon name: computer-vm
Chassis: vm
Machine ID: b164b6646e3f4d75aa151a3848a9ac20
Boot ID: f690c03a68f04e408f057e7f86ce9e70
Virtualization: oracle
Operating System: CentOS Linux 8
CPE OS Name: cpe:/o:centos:centos:8
Kernel: Linux 4.18.0-240.1.1.el8_3.x86_64
Architecture: x86-64 Ubuntu sets up a network for the host, so it is not affected:
CentOS does not add any host network, so it is affected:
Not showing IPv6 in the name of brevity, same thing for When minikube goes and adds a name for the NAT interface, systemd picks it up.
There is still no name assigned to the "real" Host-Only interface, so that is nameless.
Old versions of Vagrant has some bug adding multiple entries for localhost <sigh> It is supposed to be able to set the hostname in the Vagrantfile, on a specific interface. |
Note: Removing the "control-plane" name for the kubernetes host interface breaks functionality.
For minikube it might be a feature, since it means it is not exposed to the outside by mistake.
|
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
This is not desired, the hostname should stay the way it is.
For multi-node VMs that we create ourselves, then sure.
But existing machines get to keep their current hostnames.
Seen in #11174 with CentOS 8 (systemd 239)
The text was updated successfully, but these errors were encountered: