Comments (7)
@solesensei thank for opening the issue. What behaviour would you expect after terminating the pod? Connection failure?
from devpod.
@pascalbreuninger
Yes, if you have stopped the pod, then any SSH connection should fail.
Till you explicitly start the workspace again
from devpod.
Any updates?
from devpod.
@pascalbreuninger I think the option would be nice at least --do-not-start-on-connection
from devpod.
I was thinking about this proposal and to me it comes down to the foundational question of whether DevPod is expected to just create a workspace or as a tool to create and manage machines (infrastructure) and containers.
I am leaning towards on the former side, personally. This also bears the implication that DevPod always attempts to recreate the infrastructure needed to run a workspace.
We could implement the flag for sure, question is if it fits the projects "philosophy" 🤷♂️
What do you think?
from devpod.
DevPod is expected to just create a workspace or as a tool to create and manage machines (infrastructure) and containers. I am leaning towards on the former side, personally.
@pascalbreuninger thanks for your answer
DevPod is already part of handling infrastructure tasks. It can make virtual machines and Kubernetes pods, and you can stop them either on your own or by setting an inactive timeout. I also don't think the tool has to solve really complex infrastructure issues.
In my opinion, the key thing DevPod should tackle is making it easier to create a consistent development environment with the resources you need. Sure, you can make your own virtual machine, connect through SSH, install Docker, and then use the devcontainer command line to start your container. But DevPod can do all of that in one go.
Talking about "recreating the infrastructure needed for a workspace," I'm fine with that. The issue is that it's surprising when connecting to your Kubernetes pod without explicitly using any devpod
command.
When you run the ssh my-host
command, it's basically triggering a behind-the-scenes DevPod setup. What's worse is you might not expect this, especially when working in your IDE, which might use the same command just to check the connection. Creating a workspace on Kubernetes can take 10-20 minutes, especially with heavy configurations. An engineer might not notice it, shut down their workspace, close the IDE, and unintentionally leave a running workspace for days, leading to unnecessary costs. #741
But I can understand the reasons behind the current behaviour. It's convenient to just do devpod up my-workspace
and have your workspace up and running. However, for connecting via SSH, a better option could be having ProxyCommand /usr/local/bin/devpod ssh --do-not-start
in my ~/.ssh/config.
from devpod.
When you run the ssh my-host command, it's basically triggering a behind-the-scenes DevPod setup. What's worse is you might not expect this, especially when working in your IDE, which might use the same command just to check the connection. Creating a workspace on Kubernetes can take 10-20 minutes, especially with heavy configurations. An engineer might not notice it, shut down their workspace, close the IDE, and unintentionally leave a running workspace for days, leading to unnecessary costs. #741
Thanks for the explanation, I do understand your problem way better now!
from devpod.
Related Issues (20)
- Run Python Application in PyCharm Client via JetBrains Gateway HOT 2
- Vendoring the rust dependencies for offline-building a package for openSUSE HOT 1
- Support native Wayland HOT 1
- The order of versions in "Or download a specific version" does not follow semver HOT 1
- Agent Url Override HOT 5
- Default workspace directory is not mounted in AWS provider HOT 1
- Temporary permissions issues on launch (detected dubious ownership in repository)
- Cannot create ssh provider HOT 9
- Cannot forward gpg-agent in DigitalOcean machine HOT 4
- Cannot forward gpg-agent when "docker-in-docker" is enabled in devcontainer
- git-remote-https: Undefined symbol: EVP_md2, version OPENSSL_3.0.0 HOT 3
- Docker Credentials Helper Fails after a few hours HOT 3
- Desktop DevPod fails to locate CLI due to incorrect path HOT 4
- Add support for cursor.com IDE (vscode compatible fork)
- Spot/Preemptible cloud instance provisioning
- devpod can not connect to docker deamon (colima) when use a dockerfile
- Support local projects inside WSL with Docker provider HOT 1
- Error upon cloning repository due to CA Cert
- Offer a way to supply GIT credentials HOT 2
- Unable to assign a label for pods HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from devpod.