Comments (5)
It's a very interesting problem, I think.
Draft has draft connect
, which I've not used and not quite aware of what it does, but perhaps that's one area to explore.
Right now I can grab pod names from skaffold dev
output and use it with kubectl exec
or kubect port-forward
, it'd be nice if I didn't need to do this manually, as I won't necessarily grab the rigth pod name. Maybe this isn't Skaffold's problem to solve at all, I'm not sure.
On the other hand, kubectl exec
(and kubect port-forward
as of latest release, I hear) no longer require pod name, so it's not that make things easier for some users, although I'm pretty sure that some user would aim at a particular pod... Also, I'm not sure if new kubectl debug
requires pod name or it can be used with deployment/<name>
, I've not got a chance to use it yet.
Despite that, it'd be nice to have a way to deal with the case of a simple project where I have one deployment and don't want to maintain non-portable/insecure scripts or service definitions, so I'd rather like to see a simple tool that parses skaffold.yaml
and figures out the pod I want to connect to (whether I wanna do kubectl exec|port-forward|debug
).
Alternatively, it'd be also neat to have skaffold dev --proxy-all|--proxy=<name>...
, which would set-up some kind of proxies all ports for all workloads that it manages (or a subset of), and it'd try to do the right thing for the type of cluster it's used with.
For example, on Docker for Mac it could just create NodePort
services (basically kubectl expose
, but Skaffold would print the port it allocates), while for a remote cluster it could be something based on kubectl port-forward
.
Just a few thoughts...
from skaffold.
I wonder if we could figure out the "skaffold deployed" pods automatically, and forward any ports automatically.
from skaffold.
@dlorenc we have code -> image which gives us any pod running that container.
The one thing we're missing is really understanding the manifests going in and what resources we're deploying. You might want to port forward a service or ingress backend, which we wouldn't be able to do today.
from skaffold.
I think that debugging it is a very important feature to be covered in dev.
What is the debugging hipotesis of the Skaffold dev loop? How it is supposed currently to do debugging?
from skaffold.
I'm going to close this with #945. There is #969 with some additional ideas around how the feature might work.
from skaffold.
Related Issues (20)
- enable goconst and nakedret rules in golang-lint
- reenable coverageredesign for test converage
- Wrong latest version shown in `skaffold.yaml` documentation page HOT 1
- Tail log from a different pod?
- Skaffold should expose metrics/telemetry
- TestShouldDisplayPrompt is failing for 2.10.0
- Skaffold ignores helm post renderer's errors and destroys deployment
- Skaffold build with --file-output and --tag outputs a file without the new tag. HOT 1
- Authentication required when pullinb public images from gcr when logged in to Google Cloud
- 2.11.1 is a wrong tag? HOT 2
- Modules activated by profiles? HOT 2
- Allow any network to be provided to docker builder HOT 1
- Cannot update mutliple containers created from single image HOT 2
- skaffold.yaml: Add global field to hold YAML anchor definitions
- Skaffold stops restarting my container after some time passes HOT 1
- Dockerfile in .dockerignore is not respected, leading to unnecessary full rebuilds HOT 2
- Custom actions ignores container volumes
- watcher breaks with dockerfile using COPY --parents
- [BUG] Config dependency doesn't work when deployers are different HOT 2
- Migrate the project to CNFC HOT 4
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 skaffold.