When using the Kubernetes extension with Cursor, I encounter the following error (see complete log below):
[3547 ms] Start: Run in container: (command -v getent >/dev/null 2>&1 && getent passwd 'root' || grep -E '^root|^[^:]*:[^:]*:root:' /etc/passwd || true)
[3731 ms] Start: Run in container: test -d '/root/.cursor-server'
[3915 ms]
[3916 ms]
[3916 ms] Exit code 1
[3917 ms] Start: Run in container: test -d '/root/.vscode-remote'
[4101 ms]
[4102 ms]
[4102 ms] Exit code 1
[4103 ms] Start: Run in container: test ! -f '/root/.cursor-server/data/Machine/.writeMachineSettingsMarker' && set -o noclobber && mkdir -p '/root/.cursor-server/data/Machine' && { > '/root/.cursor-server/data/Machine/.writeMachineSettingsMarker' ; } 2> /dev/null
[4290 ms]
[4290 ms]
[4291 ms] Start: Run in container: cat /root/.cursor-server/data/Machine/settings.json
[4472 ms]
[4472 ms] cat: /root/.cursor-server/data/Machine/settings.json: No such file or directory
[4472 ms] Exit code 1
[4474 ms] Start: Run in container: test -d '/root/.cursor-server/bin/001668006cc714afd397f4ef0d52862f5a095530'
[4662 ms]
[4663 ms]
[4663 ms] Exit code 1
[4664 ms] Installing VS Code Server for commit 001668006cc714afd397f4ef0d52862f5a095530
[4665 ms] Start: Downloading VS Code Server
[4665 ms] 001668006cc714afd397f4ef0d52862f5a095530 linux-x64 stable
[5195 ms] Failed to download VS Code Server (https://update.code.visualstudio.com/commit:001668006cc714afd397f4ef0d52862f5a095530/server-linux-x64/stable): HTTP 404 - Not Found
[5195 ms] Retrying to download VS Code Server.
[5481 ms] Error: Server returned 404
at m (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:1209:49036)
It seems Cursor is unable to properly install the required server files in the remote Kubernetes pod. This breaks the Kubernetes extension functionality.
Temporary Workaround:
Manually establish an SSH connection to the pod (insecure and cumbersome).
Use Cursor with SSH extension, because it can successfully install cursor-server to the remote pod: /root/.cursor-server/cli/servers/Stable-${commit_id}/server.
Inside the remote pod, manually copy this installation to the default installation path used by Kubernetes extension (/root/.cursor-server/bin/${commit_id}/):