-
Notifications
You must be signed in to change notification settings - Fork 206
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
Is it possible to define a --domain only? #156
Comments
I'd actually like to use this for
EDIT Got clever and tried deploying my chart to a |
@balibebas my team uses ingress annotations to allow localhost website development to access forwarded API services. If you use ingress nginx you might want to try the following annotations: apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: web-site
namespace: customerx
annotations:
nginx.ingress.kubernetes.io/enable-cors: "true"
nginx.ingress.kubernetes.io/cors-allow-methods: "PUT, GET, POST, OPTIONS"
nginx.ingress.kubernetes.io/cors-allow-origin: "http://localhost:3000" |
@jarlarntzen this should probably not be that hard to implement, |
Every service forwarded gets the following entries in `/etc/hosts':
You can create any number contexts in your
|
kubefwd services --namespace "namespace" --context "dev-cluster" --domain 'remote'
results in: " Adding custom domain remote to all forwarded entries"
So in addition to connecting to servicename:80 we can also connect to servicename.remote:80
Now, is it possible to somehow define that we should only be able to connect to servicename.remote:80?
The reason I'm asking is that if we're debugging a service locally, we'd like to port forward to the rest of the services running on the remote cluster using a different URL instead of the same name as the local services. This way 1 of the services can run locally, being accessible through servicename:80 while the rest of the services are accessible through servicename.remote:80 .
Is this possible to invoke through a CLI flag?
The text was updated successfully, but these errors were encountered: