<p>After upgrading to macOS Monterey, the <strong>Kubernetes Extension(version v1.3.3) of VSCode (Version: 1.62.0)</strong> is throwing the following error whenever it initialise. But the <strong>Homebrew</strong> installed <strong>Kubectl</strong> is still working fine in the terminal. Is anyone else facing this issue? Any possible solution would be of great help</p>
<p><code>Kubectl command failed: fatal error: runtime: bsdthread_register error runtime stack: runtime.throw(0x2355d59, 0x21) /usr/local/go/src/runtime/panic.go:616 +0x81 fp=0x7ff7bfeff478 sp=0x7ff7bfeff458 pc=0x1028ff1 runtime.goenvs() /usr/local/go/src/runtime/os_darwin.go:129 +0x83 fp=0x7ff7bfeff4a8 sp=0x7ff7bfeff478 pc=0x1026b73 runtime.schedinit() /usr/local/go/src/runtime/proc.go:501 +0xd6 fp=0x7ff7bfeff510 sp=0x7ff7bfeff4a8 pc=0x102b8e6 runtime.rt0_go(0x7ff7bfeff548, 0x5, 0x7ff7bfeff548, 0x0, 0x1000000, 0x5, 0x7ff7bfeff740, 0x7ff7bfeff76f, 0x7ff7bfeff776, 0x7ff7bfeff77b, ...) /usr/local/go/src/runtime/asm_amd64.s:252 +0x1f4 fp=0x7ff7bfeff518 sp=0x7ff7bfeff510 pc=0x1051e94</code></p>

Karthikeyan Venkatesan
<p>Solved this issue by manually changing the kubectl path in vscode's settings.json to the brew installed version</p>
<p><a href="https://i.stack.imgur.com/iuTIZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/iuTIZ.png" alt="vscode | settings.json" /></a></p>
<p><b>Another solution</b>: If you don't want to change the vscode's settings.json , just replace the <b>kubectl</b> binary in folder <code>/Users/&lt;your_home_directory&gt;/.vs-kubernetes/tools/kubectl</code> from the brew folder <code>/usr/local/Cellar/kubernetes-cli/&lt;working_version&gt;/bin</code></p>
