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

/etc/hosts is not changed on Ubuntu 22 #280

Open
Koshmaar opened this issue Sep 20, 2024 · 0 comments
Open

/etc/hosts is not changed on Ubuntu 22 #280

Koshmaar opened this issue Sep 20, 2024 · 0 comments

Comments

@Koshmaar
Copy link

Hello, I'm unable to get kubefwd to work on Ubuntu 22. The problem is that /etc/hosts is not changed:

 $ sudo kubefwd svc -n api -v
INFO[13:58:01]  _          _           __             _     
INFO[13:58:01] | | ___   _| |__   ___ / _|_      ____| |    
INFO[13:58:01] | |/ / | | | '_ \ / _ \ |_\ \ /\ / / _  |    
INFO[13:58:01] |   <| |_| | |_) |  __/  _|\ V  V / (_| |    
INFO[13:58:01] |_|\_\\__,_|_.__/ \___|_|   \_/\_/ \__,_|    
INFO[13:58:01]                                              
INFO[13:58:01] Version 1.22.5                               
INFO[13:58:01] https://github.com/txn2/kubefwd              
INFO[13:58:01]                                              
INFO[13:58:01] Press [Ctrl-C] to stop forwarding.           
INFO[13:58:01] 'cat /etc/hosts' to see all host entries.    
INFO[13:58:01] Loaded hosts file /etc/hosts                 
INFO[13:58:01] HostFile management: Original hosts backup already exists at /root/hosts.original 
INFO[13:58:01] Successfully connected context: envirogen    
DEBU[13:58:01] Registry: Start forwarding service dataplane-api.api.envirogen 
DEBU[13:58:01] Registry: Start forwarding service frontend.api.envirogen 
DEBU[13:58:01] Registry: Start forwarding service platform-api.api.envirogen 

The services are running on minikube 1.33, and I can easily port forward using kubectl port-forward.

The hosts file is very basic, there is almost nothing here, no special syntax or whatever. Attaching just in case:

127.0.0.1	localhost

# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

The only similar problems I saw on internet, were on Windows: #268 , and even there the error was visible, while here kubefwd doesn't error in any way, continues to run in background, but doesn't actually forward.

Does anyone have any ideas on what might be the problem? Or what to try for debugging it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant