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

Support containerized workloads to remove the need for elevated permissions #269

Open
hsubramanianaks opened this issue May 9, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@hsubramanianaks
Copy link
Collaborator

This is a feature to support containerized workloads which would run user's workload in containers like docker and local agent would run in the same container/ same network using docker compose. Port forward happens from user's workload to local agent to remote agent running the k8s cluster and vice versa.

Pros:

  • Eliminates the need of elevated permissions
  • Doesn't harm local machines configurations
  • Resolves conflicts with services already running in any port which B2K might allocate ex: port 80, 443.

Cons:

  • user workloads need to be containerized in local, ex: running in a container in docker
  • use of devcontainer.json is required to make this work. sample PR here and about devcontainers for vscode here
  • Find an alternative way to solve this for VS users - In progress.
@hsubramanianaks hsubramanianaks converted this from a draft issue May 9, 2023
@hsubramanianaks hsubramanianaks added the enhancement New feature or request label May 9, 2023
@hsubramanianaks
Copy link
Collaborator Author

Duplicate request #220

@pkoelbl
Copy link
Contributor

pkoelbl commented Oct 4, 2023

This is actually the dev environment that my company uses. Using vscode and docker desktop with kubernetes enabled. We have a dev-container setup, then we use that to b2k into whatever pod we need to.

We did have to build all the arm64 things mentioned in #273 to get it to work for our arm macs.

It is handy because it enables us to debug against a production like environment. The drawback is it needs a good amount of memory. Also debugging against React can get kind of glitchy sometimes. It also occasionally runs into a resource issue that causes the kubernetes pods to go into an evicted or completed state.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Backlog Features
Development

No branches or pull requests

2 participants