Comments (6)
Hi @vintikzzz, thanks for the feature request!
Could you clarify, please, where you would like to use env variables? In the config text, config's path or in resource fields (name/namespace)?
from kube-forwarder.
Ok! I have a lot of golang microservices in development. Every microservice reads information about location of another services from environment variable (see k8s docs). So it will be great if such env variables automatically become available in my dev-environment like this happens inside k8s.
from kube-forwarder.
@vintikzzz
Thanks for your comment, it seems I completely misunderstood the issue description.
Is it something like "Env variables forwarding" feature? l.e. you want that env variables from a pod are available on your dev machine (the machine on which Kube Forwarder is installed)?
from kube-forwarder.
@proAlexandr
I'll try to add more details:
Initial conditions:
- I have k8s cluster
- I have installed "Kube Forwarder" on my local machine
- I have local project
A
that reads standard k8s environment variables to communicate with serviceB
inside k8s cluster (for exampleB_SERVICE_HOST
andB_SERVCE_PORT
)
Steps:
- In "Kube Forwarder" I add new resource that represents my service
B
, with forwarding resource port 8080 to my local port 8081 - "Kube Forwarder" makes port forwarding for service
B
and also injects environment variables on my local machine B_SERVICE_HOST=127.0.0.1 and B_SERVCE_PORT=8081 - I run my local project
A
and it automatically connects to serviceB
that is inside k8s cluster with the help of port forwarding and env variables injection.
from kube-forwarder.
Thanks! Now, It is clear for me. I agree it could be a nice feature.
I suppose it could be implemented in this way:
There is an advanced section in the resource form. After you open it you see the checkbox. If the checkbox is checked two text fields appear and have default values based on the resource name.
Sorry, I can't promise you that the feature will be implemented soon. Feel free to make a PR if it's very important for you.
from kube-forwarder.
That's kind of interesting, but where would it inject those environment variables into? .bashrc
?
from kube-forwarder.
Related Issues (20)
- Is this repo maintained? HOT 21
- cannot forward ports on macbook pro m1 HOT 2
- BUG: Failed to connect to kubernetes: can't be fetched HOT 1
- [Feature request] VPN option
- how does this determine a forwarder is active?
- services don't respond to HTTP OPTION, forwarder fails
- Can you trigger a build with latest code ?
- [Question] Web Socket Support?
- Empty icon is shown in GNOME Shell Favorites panel and Window list HOT 1
- Select Listen Address on Windows HOT 1
- Update dependencies, enable security alerts & dependabot
- Flatpak distribution
- Running on Latest version of MacOS
- Forwarding not working but works manually - can you help ?
- Deployments list is not propagated in UI HOT 1
- Feature: Dark Mode
- [Enhancement-request] Add infinite retry to avoid connection drops
- kubectl not found
- DEAD REPO ? NEED HELP / NEW MAINTAINERS ? HOT 4
- Kube forwarder doesn't show anything, don't know why
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 kube-forwarder.