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

Can't start with isolation #356

Open
louis-genestier opened this issue Jan 29, 2024 · 3 comments
Open

Can't start with isolation #356

louis-genestier opened this issue Jan 29, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@louis-genestier
Copy link

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 louis-genestier added the bug Something isn't working label Jan 29, 2024
@hsubramanianaks
Copy link
Collaborator

@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.

@louis-genestier
Copy link
Author

@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 ?

@hsubramanianaks
Copy link
Collaborator

@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.

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

No branches or pull requests

2 participants