Can't start with isolation
louis-genestier opened this issue · 3 comments
Describe the bug
When I try to start bridge with the isolateAs
parameter I get this error:
Failed to establish a connection. Error: Internal Server Error: Object 'Kind' is missing in '{"metadata":{"labels":{"routing.visualstudio.io/component":"routingmanager"},"name":"routingmanager-role","namespace":"XXX"},"rules":[{"apiGroups":[""],"resources":["pods"],"verbs":["watch","get","list","delete"]},{"apiGroups":[""],"resources":["services","configmaps"],"verbs":["list","create","update","delete"]},{"apiGroups":["extensions","networking.k8s.io"],"resources":["ingresses"],"verbs":["watch","list","create","update","delete"]},{"apiGroups":["apps","extensions"],"resources":["deployments","deployments/status"],"verbs":["get","list","create","update","delete"]},{"apiGroups":["traefik.containo.us"],"resources":["ingressroutes"],"verbs":["get","create","apply","list","delete","update"]}]}'
Mention the platform you are using
vscode 1.85.1
To Reproduce
Not really sure how, but this is my configuration:
launch.json
{
"version": "0.2.0",
"resolveSourceMapLocations": ["${workspaceFolder}/**", "!**/node_modules/**"],
"configurations": [
{
"name": "service – Server with Kubernetes",
"type": "node",
"request": "launch",
"runtimeExecutable": "nx",
"runtimeArgs": ["run", "service:serve"],
"outputCapture": "std",
"internalConsoleOptions": "openOnSessionStart",
"console": "internalConsole",
"env": {
"TS_NODE_IGNORE": "false",
"TS_NODE_PROJECT": "${workspaceFolder}/apps/service/tsconfig.json"
},
"cwd": "${workspaceFolder}/apps/service/",
"preLaunchTask": "bridge-to-kubernetes.resource"
}
]
}
tasks.json
{
"version": "2.0.0",
"tasks": [
{
"label": "bridge-to-kubernetes.resource",
"type": "bridge-to-kubernetes.resource",
"resource": "service",
"resourceType": "service",
"ports": [8080],
"targetCluster": "xxxxxxx",
"targetNamespace": "service-namespace",
"useKubernetesServiceEnvironmentVariables": false,
"isolateAs": "testtest"
}
]
}
Expected behavior
It should allow me to be able to start debugging in isolation
Desktop (please complete the following information):
- OS: MacOS
- Version 14.2.1
Additional context
Kube version if it can help: v1.28.4-eks-8cb36c9
@louis-genestier thanks for raising this issue. Can you share the logs from your tmp folder in your mac ? That will help use to triage issue further.
@hsubramanianaks thank you for your fast answer 🙏 We do not find any logs in $HOME/tmp/Bridge To Kubernetes
or /tmp/Bridge To Kubernetes
, with the CLI or the vscode extension. Did the path changed ?
@louis-genestier Mac location is different -
sample vscode logs - /Users/xxxx/Library/Application Support/Code/logs/XXX/exthost4/mindaro.mindaro/mindaro-vscode-2022-07-19T18-16-13.263Z.txt
CLI logs location can be found in the vscode logs I guess. I can try myself and let you know. Meanwhile can you check in this location. Another easier way to find , Output window --> Bridge To Kubernetes would show you the right path. Thank you.