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

Gefyra connect not working when running from container-based IDE. #698

Open
Schille opened this issue Oct 1, 2024 · 0 comments
Open

Gefyra connect not working when running from container-based IDE. #698

Schille opened this issue Oct 1, 2024 · 0 comments
Assignees
Labels
bug 🐛 Something isn't working enhancement 🎉 New feature or request

Comments

@Schille
Copy link
Collaborator

Schille commented Oct 1, 2024

What happened?

When running container-based dev IDEs (such as DevPod), Gefyra cannot successfully connect. Due to the fact, that the Wireguard credentials (pulled from the cluster via SA-token/K8s API) are located within the container of the IDE and the container-host (i.e. Docker-host) is outside, the following mount cannot execute successfully:

f"{wg_conf}:/config/wg0.conf",

Idea: Instead of a bind-mound, we can create a dedicated volume filled with the Wireguard credentials from within the IDE container and mount it onto Gefyra Cargo this way. This should be a portable solution that works for usual host-based Gefyra and container-based dev environments.

What did you expect to happen?

Gefyra to connect successfully.

Please provide the output of gefyra check.

n/a

How can we reproduce it (as minimally and precisely as possible)?

1.) Create a container (for example Ubuntu), mount the Docker socket into it
2.) Install Gefyra in the container
3.) Try connecting to a Gefyra cluster (running Gefyra from within the container from 1.)

What Kubernetes setup are you working with?

$ kubectl version
# paste output here

OS version

# On Linux:
$ cat /etc/os-release
# paste output here
$ uname -a
# paste output here

# On Windows:
C:\> wmic os get Caption, Version, BuildNumber, OSArchitecture
# paste output here

Anything else we need to know?

No response

@Schille Schille added bug 🐛 Something isn't working enhancement 🎉 New feature or request labels Oct 1, 2024
@Schille Schille changed the title Gefyra Connect not possible when running from Container-based IDE. Gefyra connect not working when running from container-based IDE. Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something isn't working enhancement 🎉 New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants