Skip to content

Kubectl on MacOS Montery 12.6 causing networking crash, requires restart #1299

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

Closed
awbacker opened this issue Oct 9, 2022 · 5 comments
Closed
Labels
kind/bug Categorizes issue or PR as related to a bug. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one.

Comments

@awbacker
Copy link

awbacker commented Oct 9, 2022

When I execute kubectl version on my recently upgraded OSX 12.6 Macbook Pro (Intel), the network stack appears to crash. This requires a restart.

This appears to be related to IPv6 in some way:

  • Wifi DHCP provies 2 servers: 192.168.1.254 and fe80::c6e5:32ff:...
  • Manually setting to 8.8.4.4 or another IPv4 fixes the issue

Perhaps kubectl is triggering some MacOS network stack bug?

What happened:

Unable to connect to the server: dial tcp: lookup {...}.eks.amazonaws.com: i/o timeout
  • The entire network stack stops responding
  • Network settings page blanks out completely
  • kubectl version can't be exited with ctrl+c
  • kill -9 on the kubectl process results in (kubectl) in ps aux output, it never leaves
  • Restarting causes MacOS to force quit apps such as firefox, they can't shutdown cleanly

What you expected to happen:

Expected it would show the version.

Environment:

  • Connecting to AWS EKS
  • Kubernetes server v1.21
  • kubectl clients v1.21, v1.24, v1.25
  • Tested with AWS's provided EKS as well as official distributions
  • Mac OS 12.6, Intel

I found a comment in an issue in helm (helm/helm#11306 (comment)) which solved this for me: Change to IPv4 only in DNS.

I was running into the same issue and discovered it was being caused by a weird IPv6 DNS record in my System Settings. These greyed out rules were set automatically (based on my network setup I think), but after manually setting just 192.168.1.254 as my sole DNS server my issues were resolved instantly. System Preferences -> Network -> Advanced -> DNS

@awbacker awbacker added the kind/bug Categorizes issue or PR as related to a bug. label Oct 9, 2022
@k8s-ci-robot k8s-ci-robot added the needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. label Oct 9, 2022
@k8s-ci-robot
Copy link
Contributor

@awbacker: This issue is currently awaiting triage.

SIG CLI takes a lead on issue triage for this repo, but any Kubernetes member can accept issues by applying the triage/accepted label.

The triage/accepted label can be added by org members by writing /triage accepted in a comment.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@dims
Copy link
Member

dims commented Oct 9, 2022

@awbacker you mentioned Related issue I ran into, which gave me the solution... can you please comment what exactly you had to do?

@awbacker
Copy link
Author

awbacker commented Oct 10, 2022

@dims

Manually setting to 8.8.4.4 or another IPv4 fixes the issue

The specific comment is helm/helm#11306 (comment). I've updated the issue with a link to the comment directly, and a copy of the text posted by that user. I can see how my "that fixed it" would be pretty easy to miss.

@eddiezane
Copy link
Member

This appears to be an upstream Go issue. Let's follow it there.

golang/go#52839

/close

@k8s-ci-robot
Copy link
Contributor

@eddiezane: Closing this issue.

In response to this:

This appears to be an upstream Go issue. Let's follow it there.

golang/go#52839

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one.
Projects
None yet
Development

No branches or pull requests

4 participants