You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I run kubefwd svc -n new-namespace and new-namespace is empty, kubefwd exits immediately. However, I'm programmatically creating services there (via dask-kubernetes. So I'd like it to just stay and watch.
I can reproduce this with:
$ kubectl create ns test-empty-namespace
$ sudo kubefwd svc -n test-empty-namespace
INFO[12:26:30] _ _ __ _
INFO[12:26:30] || ___ _||__ ___ / _|_ ____||
INFO[12:26:30] ||/ / |||'_ \ / _ \ |_\ \ /\ / / _ |INFO[12:26:30] | <| |_| | |_) | __/ _|\ V V / (_| |INFO[12:26:30] |_|\_\\__,_|_.__/ \___|_| \_/\_/ \__,_|INFO[12:26:30]INFO[12:26:30] Version 1.14.2INFO[12:26:30] https://github.com/txn2/kubefwdINFO[12:26:30]INFO[12:26:30] Press [Ctrl-C] to stop forwarding.INFO[12:26:30] 'cat /etc/hosts' to see all host entries.INFO[12:26:30] Loaded hosts file /etc/hostsINFO[12:26:30] Hostfile management: Original hosts backup already exists at /Users/yuvipanda/hosts.originalINFO[12:26:32] Succesfully connected context: gke_ucb-datahub-2018_us-central1_fall-2019INFO[12:26:36] Done...
It works if there's already at least one ready service in the namespace - empty or headless services won't work.
I'm on MacOS, with kubefwd version 1.14.2
The text was updated successfully, but these errors were encountered:
@yuvipanda I think using kubefwd for empty namespaces is meaningless. Because, kubefwd should not introduce a waiting mechanism, try to have the correct service in your namespace in the future.
@ndj888 thank you for the reply. I agree it's meaningless for namespaces that will remain empty. However, in this case, the goal is to programmatically create them as the user performs actions with dask. If they create a big cluster for about 30 minutes, that will create services for that time duration only. So it isn't an 'empty namespace' as much as an 'intermittently empty' namespace. A --wait or similar flag would be very helpful here.
@yuvipanda@cjimti Using --wait may not be the best solution. In subsequent versions, I think kubefwd can provide a set of programmable APIs to register those namespaces controlled by code. What do you think, we can do it with gin .
@cjimti In the next version, can we provide restful api using gin? This uses kubefwd in more usage scenarios, looking forward to yours. Yes, I have time to join the team and expand kubefwd for more opportunities.
Awesome project, <3 it :)
When I run
kubefwd svc -n new-namespace
andnew-namespace
is empty,kubefwd
exits immediately. However, I'm programmatically creating services there (via dask-kubernetes. So I'd like it to just stay and watch.I can reproduce this with:
It works if there's already at least one ready service in the namespace - empty or headless services won't work.
I'm on MacOS, with kubefwd version 1.14.2
The text was updated successfully, but these errors were encountered: