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

Bug: /etc/hosts in compute pod is reset when kubectl debug is used #1304

Open
cloneable opened this issue Mar 6, 2025 · 0 comments
Open
Labels
c/autoscaling/neonvm Component: autoscaling: NeonVM t/bug Issue Type: Bug

Comments

@cloneable
Copy link

cloneable commented Mar 6, 2025

Environment

compute pod

Steps to reproduce

Use kubectl debug to attach a sidecar container to a running compute. The kubelet resets /etc/hosts, essentially dropping the guest-vm entry.

Expected result

I expect /etc/hosts to be fully managed by k8s, so it's safe to use kubectl debug. One can use hostAliases to add extra entries to /etc/hosts file.

Actual result

The neonvm-runner manually adds a guest-vm entry that the kubelet doesn't know about.

Slack: https://neondb.slack.com/archives/C03TN5G758R/p1741256445956649

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c/autoscaling/neonvm Component: autoscaling: NeonVM t/bug Issue Type: Bug
Projects
None yet
Development

No branches or pull requests

1 participant