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

Cannot access pod logs or port foward anything in kubernetes deploy. #1081

Closed
1 of 5 tasks
drew-viles opened this issue Jul 29, 2024 · 5 comments · Fixed by #1082
Closed
1 of 5 tasks

Cannot access pod logs or port foward anything in kubernetes deploy. #1081

drew-viles opened this issue Jul 29, 2024 · 5 comments · Fixed by #1082
Labels
bug Something isn't working

Comments

@drew-viles
Copy link

drew-viles commented Jul 29, 2024

Description

I've run colima as follows:

colima start --cpu 4 --memory 8 --network-address --kubernetes

However When I'm trying to port-forward anything or access logs, I'm getting the following error:

error: error upgrading connection: error dialing backend: proxy error from 192.168.106.2:6443 while dialing 192.168.106.2:10250, code 502: 502 Bad Gateway

When I remove the --network-address flag, it works as expected.

The problem is as I'm using this for Kubernetes, I've been replying on that flag to allow me access to services, such as nginx ingress, in the cluster when testing things.

Is this a bug, a known feature as part of the --network-driver flag removal or something that has been accidentally introduced (regression - was working in a previous version)?

Version

brew info colima
==> colima: stable 0.6.10 (bottled), HEAD

Operating System

  • macOS Intel <= 13 (Ventura)
  • macOS Intel >= 14 (Sonoma)
  • Apple Silicon <= 13 (Ventura)
  • Apple Silicon >= 14 (Sonoma)
  • Linux

Output of colima status

colima status
INFO[0000] colima is running using QEMU                 
INFO[0000] arch: aarch64                                
INFO[0000] runtime: docker                              
INFO[0000] mountType: sshfs                             
INFO[0000] address: 192.168.106.2                       
INFO[0000] socket: unix:///Users/drew/.colima/default/docker.sock 
INFO[0000] kubernetes: enabled

Reproduction Steps

  1. colima start --cpu 4 --memory 8 --network-address --kubernetes
  2. kubectl logs -f -n kube-system deploy/coredns

Expected behaviour

I should be able to port-forward and fetch logs (it may well affect other functions too)

Additional context

No response

@abiosoft
Copy link
Owner

abiosoft commented Jul 29, 2024

Wow, thanks for reporting. It is definitely a bug and a regression.

I have reproduced it successfully and would work on a fix.

@abiosoft abiosoft added the bug Something isn't working label Jul 29, 2024
@drew-viles
Copy link
Author

Wow thanks for the RAPID response on this!

@abiosoft
Copy link
Owner

@drew-viles can you try with the development version and see if this is fixed?

# install development version
brew install --head colima

# reset current instance
colima delete

# start a new instance with network address enabled
colima start --kubernetes --network-address

@drew-viles
Copy link
Author

That works perfect. Thanks very much for fixing this so qucikly!

@abiosoft
Copy link
Owner

Thanks for confirming, a new release is imminent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants